summaryrefslogtreecommitdiff
path: root/sql/create_options.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-05-01 19:33:25 +0200
committerSergei Golubchik <serg@mariadb.org>2016-05-05 01:05:05 +0200
commitea195d372bfa8f695ee2189f909c9c22b39df0c4 (patch)
tree2d1f754b8b6e3d8d7d38b86581c5999cb683513c /sql/create_options.h
parent09464ddec49355a90fdd32abe2daaa1dff8e1106 (diff)
downloadmariadb-git-ea195d372bfa8f695ee2189f909c9c22b39df0c4.tar.gz
MDEV-9949 Connect Engine: long SRCDEF leads to broken table
Two bugs here: * the server could create an frm (with a long attribute value) that it could not read back * Connect engine opened files from inside DROP TABLE and was ignoring the error (correctly) but was not hiding it from the server (incorrectly). This caused a crash later when DROP TABLE was finishing successfully while stmt_da already have seen an error. Also added a text case for MDEV-7935 CREATE TABLE ... AS SELECT ... can cause a Server crash (Assertion `0' in Protocol::end_statement) because Connect stopped clearing the error status in stmt_da as a fix for MDEV-7935
Diffstat (limited to 'sql/create_options.h')
-rw-r--r--sql/create_options.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/create_options.h b/sql/create_options.h
index f7b04f0484f..3e7f9ecfabf 100644
--- a/sql/create_options.h
+++ b/sql/create_options.h
@@ -23,7 +23,8 @@
#define SQL_CREATE_OPTIONS_INCLUDED
#include "sql_class.h"
-//#include "handler.h"
+
+enum { ENGINE_OPTION_MAX_LENGTH=32767 };
class engine_option_value: public Sql_alloc
{