mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge: manual resolve
This commit is contained in:
@@ -551,6 +551,12 @@ public:
|
||||
void restore_backup_statement(Statement *stmt, Statement *backup);
|
||||
/* return class type */
|
||||
virtual Type type() const;
|
||||
|
||||
/*
|
||||
Cleanup statement parse state (parse tree, lex) after execution of
|
||||
a non-prepared SQL statement.
|
||||
*/
|
||||
void end_statement();
|
||||
};
|
||||
|
||||
|
||||
@@ -1033,10 +1039,13 @@ public:
|
||||
~Disable_binlog();
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
Used to hold information about file and file structure in exchainge
|
||||
via non-DB file (...INTO OUTFILE..., ...LOAD DATA...)
|
||||
XXX: We never call destructor for objects of this class.
|
||||
*/
|
||||
|
||||
class sql_exchange :public Sql_alloc
|
||||
{
|
||||
public:
|
||||
@@ -1046,7 +1055,6 @@ public:
|
||||
bool dumpfile;
|
||||
ulong skip_lines;
|
||||
sql_exchange(char *name,bool dumpfile_flag);
|
||||
~sql_exchange() {}
|
||||
};
|
||||
|
||||
#include "log_event.h"
|
||||
@@ -1077,6 +1085,11 @@ public:
|
||||
virtual void send_error(uint errcode,const char *err);
|
||||
virtual bool send_eof()=0;
|
||||
virtual void abort() {}
|
||||
/*
|
||||
Cleanup instance of this class for next execution of a prepared
|
||||
statement/stored procedure.
|
||||
*/
|
||||
virtual void cleanup();
|
||||
};
|
||||
|
||||
|
||||
@@ -1103,6 +1116,8 @@ public:
|
||||
~select_to_file();
|
||||
bool send_fields(List<Item> &list, uint flag) { return 0; }
|
||||
void send_error(uint errcode,const char *err);
|
||||
bool send_eof();
|
||||
void cleanup();
|
||||
};
|
||||
|
||||
|
||||
@@ -1115,7 +1130,6 @@ public:
|
||||
~select_export();
|
||||
int prepare(List<Item> &list, SELECT_LEX_UNIT *u);
|
||||
bool send_data(List<Item> &items);
|
||||
bool send_eof();
|
||||
};
|
||||
|
||||
|
||||
@@ -1124,7 +1138,6 @@ public:
|
||||
select_dump(sql_exchange *ex) :select_to_file(ex) {}
|
||||
int prepare(List<Item> &list, SELECT_LEX_UNIT *u);
|
||||
bool send_data(List<Item> &items);
|
||||
bool send_eof();
|
||||
};
|
||||
|
||||
|
||||
@@ -1149,6 +1162,8 @@ class select_insert :public select_result {
|
||||
bool send_data(List<Item> &items);
|
||||
void send_error(uint errcode,const char *err);
|
||||
bool send_eof();
|
||||
/* not implemented: select_insert is never re-used in prepared statements */
|
||||
void cleanup();
|
||||
};
|
||||
|
||||
|
||||
@@ -1449,4 +1464,5 @@ public:
|
||||
bool send_fields(List<Item> &list, uint flag) {return 0;}
|
||||
bool send_data(List<Item> &items);
|
||||
bool send_eof();
|
||||
void cleanup();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user