Commit 02aaf29d authored by salle@geopard.online.bg's avatar salle@geopard.online.bg
Browse files

Fixed bug with INSERT .. SET db_name.tbl_name.col_name=''

parent 7b838054
Loading
Loading
Loading
Loading
+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;
+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;
+1 −1
Original line number Diff line number Diff line
@@ -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,