Commit 9378fc62 authored by unknown's avatar unknown

"BUG #18764: Delete conditions causing inconsistencies in Federated tables"

Post merge changes.

parent 6ab68cdf
...@@ -1727,7 +1727,6 @@ id val1 val2 ...@@ -1727,7 +1727,6 @@ id val1 val2
DROP TABLE federated.test_local; DROP TABLE federated.test_local;
DROP TABLE federated.test_remote; DROP TABLE federated.test_remote;
DROP TABLE federated.test; DROP TABLE federated.test;
drop table if exists federated.t1; drop table if exists federated.t1;
create table federated.t1 (a int, b int, c int); create table federated.t1 (a int, b int, c int);
drop table if exists federated.t1; drop table if exists federated.t1;
......
...@@ -1416,7 +1416,6 @@ select * from federated.test_remote; ...@@ -1416,7 +1416,6 @@ select * from federated.test_remote;
DROP TABLE federated.test_local; DROP TABLE federated.test_local;
DROP TABLE federated.test_remote; DROP TABLE federated.test_remote;
--enable_warnings --enable_warnings
connection slave; connection slave;
--disable_warnings --disable_warnings
DROP TABLE federated.test; DROP TABLE federated.test;
......
...@@ -1589,8 +1589,11 @@ int ha_federated::write_row(byte *buf) ...@@ -1589,8 +1589,11 @@ int ha_federated::write_row(byte *buf)
else else
{ {
(*field)->val_str(&insert_field_value_string); (*field)->val_str(&insert_field_value_string);
/* quote these fields if they require it */ values_string.append('\'');
(*field)->quote_data(&insert_field_value_string); insert_field_value_string.print(&values_string);
values_string.append('\'');
insert_field_value_string.length(0);
} }
/* append the field name */ /* append the field name */
insert_string.append((*field)->field_name); insert_string.append((*field)->field_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment