[wp-trac] [WordPress Trac] #13914: select(databasename) fails in WP 3.0RC3

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 21:44:12 UTC 2010


#13914: select(databasename) fails in WP 3.0RC3
--------------------------+-------------------------------------------------
 Reporter:  adiant        |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Database      |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 The following php code (in page.php) fails in 3.0RC3, but works in 2.9.2:

 global $wpdb;

 $wpdb->show_errors = true;

 $wpdb->select("ebrt_ebc");

 ebrt_ebc is the name of a database where the WP database user ID has full
 access.

 Messages as follows:

 Warning: Missing argument 2 for wpdb::select(), called in
 /home/ebrt/public_html/wp30rc3/wp-content/themes/default2/page.php on line
 20 and defined in /home/ebrt/public_html/wp30rc3/wp-includes/wp-db.php  on
 line 738

 Can’t select database

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13914>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list