To reproduce, put the db_tweaks module in a site that hasn't had it before. Go to modules page, check the module, and save. When the page refreshes, this is in the errors at the top for Drupal 6.12 and MySQL 5.0.75:
# user warning: Variable 'sql_big_selects' can't be set to the value of '' query: SET SESSION sql_big_selects = "" in /var/www/dev/sites/all/modules/db_tweaks/db_tweaks.module on line 80.
# user warning: Incorrect argument type to variable 'max_join_size' query: SET SESSION max_join_size = "" in /var/www/dev/sites/all/modules/db_tweaks/db_tweaks.module on line 80.
# user warning: Incorrect argument type to variable 'max_allowed_packet' query: SET SESSION max_allowed_packet = "" in /var/www/dev/sites/all/modules/db_tweaks/db_tweaks.module on line 80.
# user warning: Incorrect argument type to variable 'wait_timeout' query: SET SESSION wait_timeout = "" in /var/www/dev/sites/all/modules/db_tweaks/db_tweaks.module on line 80.
Comments
Comment #1
deekayen commentedSeems to be worse than just installation. On the user permissions page, it has all of
Comment #2
kenorb commentedI'll test it.
Probably temporary fix could be:
or proper fix (changed in first part):
Variables were undeclared after I've moved them into function.
Comment #3
kenorb commentedFixed.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/db_tweaks/d...