mod_sql_vhost_core bug renders plugin useless
Line 182 in mod_sql_vhost_core: the if statement will ALWAYS be true because mod_mysql_vhost_get_vhost() always returns HANDLER_GO_ON (which is not 0) and therefor disabled the whole plugin.
Changing the returnvalue in line 271 in mod_mysql_vhost.c from HANDLER_GO_ON to 0 will fix this issue.
Or one could change all but the last return value in mysql_vhost_get_vhost to HANDLER_ERROR and in the mentioned if statement in mod_sql_vhost_core the 0 to HANDLER_GO_ON or to if (HANDLER_ERROR == ..)
Also available in: Atom