[drupal-devel] [bug] $active_db missing as parameter to mysql_errno and mysql_error functions

2GooD drupal-devel at drupal.org
Tue Aug 23 13:13:25 UTC 2005


Issue status update for 
http://drupal.org/node/29472
Post a follow up: 
http://drupal.org/project/comments/add/29472

 Project:      Drupal
 Version:      4.6.3
 Component:    database system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  2GooD
 Updated by:   2GooD
 Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/use-active_db-for-mysql_err.diff (870 bytes)

In includes/database.mysql.inc the functions mysql_errno and mysql_error
are used without $active_db as parameter, meaning that they might catch
errors from other databases used on for example content pages.


The attached file works for me TM.




2GooD




More information about the drupal-devel mailing list