Fixed databases not being detected in query_classifier when creating new tables.

This commit is contained in:
Markus Makela
2014-12-12 16:57:19 +02:00
parent 175756c478
commit d1f5eaaaec

View File

@ -1451,7 +1451,8 @@ char** skygw_get_database_names(GWBUF* querybuf,int* size)
while(lex->current_select) while(lex->current_select)
{ {
tbl = lex->current_select->join_list->head(); tbl = lex->current_select->table_list.first;
while(tbl) while(tbl)
{ {
if(strcmp(tbl->db,"skygw_virtual") != 0) if(strcmp(tbl->db,"skygw_virtual") != 0)