mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user