1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-9114: Bulk operations (Array binding)

(+ default values)
This commit is contained in:
Oleksandr Byelkin
2016-06-29 20:03:06 +02:00
parent c6713f651f
commit e2d6912609
19 changed files with 619 additions and 176 deletions

View File

@ -2463,6 +2463,8 @@ public:
*/
Query_arena *stmt_arena;
void *bulk_param;
/*
map for tables that will be updated for a multi-table update query
statement, for other query statements, this will be zero.
@ -3438,6 +3440,12 @@ public:
To raise this flag, use my_error().
*/
inline bool is_error() const { return m_stmt_da->is_error(); }
void set_bulk_execution(void *bulk)
{
bulk_param= bulk;
m_stmt_da->set_bulk_execution(MY_TEST(bulk));
}
bool is_bulk_op() const { return MY_TEST(bulk_param); }
/// Returns Diagnostics-area for the current statement.
Diagnostics_area *get_stmt_da()
@ -5510,6 +5518,15 @@ public:
*/
#define CF_UPDATES_DATA (1U << 18)
/**
SP Bulk execution safe
*/
#define CF_SP_BULK_SAFE (1U << 19)
/**
SP Bulk execution optimized
*/
#define CF_SP_BULK_OPTIMIZED (1U << 20)
/* Bits in server_command_flags */
/**