diff options
author | monty@mysql.com <> | 2005-06-28 15:06:16 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-06-28 15:06:16 +0300 |
commit | 10c4678deff9e5daaf2f9c05244a05a9e61ec977 (patch) | |
tree | bf56a30c6bb6b1807ab7d923cca1960af81c0459 /sql/sql_insert.cc | |
parent | 46536c3a60a00131ceaec7760813bbdae2d301c4 (diff) | |
download | mariadb-git-10c4678deff9e5daaf2f9c05244a05a9e61ec977.tar.gz |
Move reset of insert_values to ensure it's done also during error conditions
This fixed a failure of insert_update.test on some platforms
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index deccc1d4dca..7d613ad6fbf 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -516,6 +516,10 @@ abort: ON DUPLICATE KEY ... we should be able to refer to sum1 in the ON DUPLICATE KEY part + WARNING + You MUST set table->insert_values to 0 after calling this function + before releasing the table object. + RETURN VALUE 0 OK -1 error (message is not sent to user) |