Loading mysql-test/r/insert_set.result 0 → 100644 +6 −0 Original line number Diff line number Diff line drop database if exists a; create database a; use a; create table b (c int); insert into a.b set a.b.c = '1'; drop database a; mysql-test/t/insert_set.test 0 → 100644 +10 −0 Original line number Diff line number Diff line # # Test of mysqld crash with fully qualified column names # drop database if exists a; create database a; use a; create table b (c int); insert into a.b set a.b.c = '1'; drop database a; sql/sql_base.cc +1 −1 Original line number Diff line number Diff line Loading @@ -1608,7 +1608,7 @@ find_field_in_tables(THD *thd,Item_field *item,TABLE_LIST *tables) for (; tables ; tables=tables->next) { if (!strcmp(tables->name,table_name) && (!db || !strcmp(db,tables->db))) (!db || !tables->db || !strcmp(db,tables->db))) { found_table=1; Field *find=find_field_in_table(thd,tables->table,name,length, Loading Loading
mysql-test/r/insert_set.result 0 → 100644 +6 −0 Original line number Diff line number Diff line drop database if exists a; create database a; use a; create table b (c int); insert into a.b set a.b.c = '1'; drop database a;
mysql-test/t/insert_set.test 0 → 100644 +10 −0 Original line number Diff line number Diff line # # Test of mysqld crash with fully qualified column names # drop database if exists a; create database a; use a; create table b (c int); insert into a.b set a.b.c = '1'; drop database a;
sql/sql_base.cc +1 −1 Original line number Diff line number Diff line Loading @@ -1608,7 +1608,7 @@ find_field_in_tables(THD *thd,Item_field *item,TABLE_LIST *tables) for (; tables ; tables=tables->next) { if (!strcmp(tables->name,table_name) && (!db || !strcmp(db,tables->db))) (!db || !tables->db || !strcmp(db,tables->db))) { found_table=1; Field *find=find_field_in_table(thd,tables->table,name,length, Loading