summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-02-17 01:35:17 +0200
committermonty@mysql.com <>2004-02-17 01:35:17 +0200
commite9315f984d9224044e771b5c483050a81b03b947 (patch)
tree7e3324032ecc97c6af3771a6904e8ae32dbf7a48 /sql/sql_table.cc
parent050af89dd8034046df593c1ac7e060ee37bfdf27 (diff)
downloadmariadb-git-e9315f984d9224044e771b5c483050a81b03b947.tar.gz
Changed wellformedlen to well_formed_len
Fixed that blobs >16M can be inserted/updated Fixed bug when doing CREATE TEMPORARY TABLE ... LIKE
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc21
1 files changed, 9 insertions, 12 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index fb86e446fb7..8d1d64e9491 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1868,20 +1868,17 @@ int mysql_create_like_table(THD* thd, TABLE_LIST* table,
table_name); /* purecov: inspected */
DBUG_RETURN(-1); /* purecov: inspected */
}
- else
+
+ // Must be written before unlock
+ mysql_update_log.write(thd,thd->query, thd->query_length);
+ if (mysql_bin_log.is_open())
{
- // Must be written before unlock
- mysql_update_log.write(thd,thd->query, thd->query_length);
- if (mysql_bin_log.is_open())
- {
- thd->clear_error();
- Query_log_event qinfo(thd, thd->query, thd->query_length,
- test(create_info->options &
- HA_LEX_CREATE_TMP_TABLE));
- mysql_bin_log.write(&qinfo);
- }
+ thd->clear_error();
+ Query_log_event qinfo(thd, thd->query, thd->query_length,
+ test(create_info->options &
+ HA_LEX_CREATE_TMP_TABLE));
+ mysql_bin_log.write(&qinfo);
}
-
DBUG_RETURN(0);
table_exists: