Loading mysql-test/r/ndb_update.result 0 → 100644 +12 −0 Original line number Diff line number Diff line DROP TABLE IF EXISTS t1; CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); UPDATE t1 set b = c; select * from t1 order by pk1; pk1 b c 0 0 0 1 1 1 mysql-test/t/ndb_update.test 0 → 100644 +22 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings # # Basic test of INSERT in NDB # # # Create a normal table with primary key # CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); UPDATE t1 set b = c; select * from t1 order by pk1; sql/sql_update.cc +2 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,8 @@ int mysql_update(THD *thd, #ifndef NO_EMBEDDED_ACCESS_CHECKS table->grant.want_privilege=want_privilege; #endif if (setup_fields(thd, 0, update_table_list, fields, 1, 0, 0)) if (setup_fields(thd, 0, update_table_list, fields, 1, 0, 0) || setup_fields(thd, 0, update_table_list, values, 1, 0, 0)) DBUG_RETURN(-1); /* purecov: inspected */ if (table->timestamp_field) { Loading Loading
mysql-test/r/ndb_update.result 0 → 100644 +12 −0 Original line number Diff line number Diff line DROP TABLE IF EXISTS t1; CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); UPDATE t1 set b = c; select * from t1 order by pk1; pk1 b c 0 0 0 1 1 1
mysql-test/t/ndb_update.test 0 → 100644 +22 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings # # Basic test of INSERT in NDB # # # Create a normal table with primary key # CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); UPDATE t1 set b = c; select * from t1 order by pk1;
sql/sql_update.cc +2 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,8 @@ int mysql_update(THD *thd, #ifndef NO_EMBEDDED_ACCESS_CHECKS table->grant.want_privilege=want_privilege; #endif if (setup_fields(thd, 0, update_table_list, fields, 1, 0, 0)) if (setup_fields(thd, 0, update_table_list, fields, 1, 0, 0) || setup_fields(thd, 0, update_table_list, values, 1, 0, 0)) DBUG_RETURN(-1); /* purecov: inspected */ if (table->timestamp_field) { Loading