summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-01-28 06:48:26 +0200
committerunknown <monty@mashka.mysql.fi>2003-01-28 06:48:26 +0200
commit72455300841e1b00c312c3a03ace3bcbd57a4d2f (patch)
tree9e418865f0fad863fd9f50122562955a2ff1b8e3 /sql/log.cc
parentc46c1258274f4993e5c5cc30cd0d4137d611db5f (diff)
downloadmariadb-git-72455300841e1b00c312c3a03ace3bcbd57a4d2f.tar.gz
Fix when using auto_increment and last_insert_id() in the same insert statement.
sql/sql_base.cc: S
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log.cc b/sql/log.cc
index ab3277fe58b..5e5d5b9368e 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -697,7 +697,7 @@ bool MYSQL_LOG::write(Query_log_event* event_info)
if (thd->last_insert_id_used)
{
- Intvar_log_event e((uchar)LAST_INSERT_ID_EVENT, thd->last_insert_id);
+ Intvar_log_event e((uchar)LAST_INSERT_ID_EVENT, thd->current_insert_id);
if(thd->server_id)
e.server_id = thd->server_id;
if (e.write(file))