summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-01-28 08:51:03 +0200
committerunknown <monty@mashka.mysql.fi>2003-01-28 08:51:03 +0200
commitf1256433fe4e92fb59cb5e2ef9c66af362f02939 (patch)
treecfcd7ea8160cf2c79be8d73ccca32445e830770a /sql/log.cc
parent8c613c2c9168efa89eefcc82b1271e6731e526a7 (diff)
parent7dda787d602353c93962666634062e5dd112f87c (diff)
downloadmariadb-git-f1256433fe4e92fb59cb5e2ef9c66af362f02939.tar.gz
Merge with 3.23.56 (Replace manual with 'empty' document)
Fix for bug when using auto_increment column and LAST_INSERT_ID() Makefile.am: Auto merged ltconfig: Auto merged innobase/btr/btr0cur.c: Auto merged sql/Makefile.am: Auto merged Docs/Makefile.am: Merge with 3.23.56 Docs/manual.texi: Merge with 3.23.56 (Replace manual with 'empty' document) libmysql/libmysql.c: Use local version sql/log.cc: Fix for bug when using auto_increment column and LAST_INSERT_ID() sql/sql_base.cc: Use local version
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 01bd08956fb..1ccd6f4ba41 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1070,7 +1070,7 @@ bool MYSQL_LOG::write(Log_event* event_info)
if (thd->last_insert_id_used)
{
Intvar_log_event e(thd,(uchar) LAST_INSERT_ID_EVENT,
- thd->last_insert_id);
+ thd->current_insert_id);
e.set_log_pos(this);
if (thd->server_id)
e.server_id = thd->server_id;