mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-6702: analyze_stmt test fails in --embedded 10.1
Provide Protocol_discard::storeXXX functions for all kinds of objects that could be stored. Failure to so would caused crashes in embedded server which attempted to collect the stored info. This also reduces the amount of copy operations for non-embedded case.
This commit is contained in:
@@ -243,6 +243,47 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
void prepare_for_resend()
|
||||
{
|
||||
#ifndef DBUG_OFF
|
||||
field_pos= 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
Provide dummy overrides for any storage methods so that we
|
||||
avoid allocating and copying of data
|
||||
*/
|
||||
virtual bool store_null()
|
||||
{ return false; }
|
||||
virtual bool store_tiny(longlong from)
|
||||
{ return false; }
|
||||
virtual bool store_short(longlong from)
|
||||
{ return false; }
|
||||
virtual bool store_long(longlong from)
|
||||
{ return false; }
|
||||
virtual bool store_longlong(longlong from, bool unsigned_flag)
|
||||
{ return false; }
|
||||
virtual bool store_decimal(const my_decimal *)
|
||||
{ return false; }
|
||||
virtual bool store(const char *from, size_t length, CHARSET_INFO *cs)
|
||||
{ return false; }
|
||||
virtual bool store(const char *from, size_t length,
|
||||
CHARSET_INFO *fromcs, CHARSET_INFO *tocs)
|
||||
{ return false; }
|
||||
virtual bool store(MYSQL_TIME *time, int decimals)
|
||||
{ return false; }
|
||||
virtual bool store_date(MYSQL_TIME *time)
|
||||
{ return false; }
|
||||
virtual bool store_time(MYSQL_TIME *time, int decimals)
|
||||
{ return false; }
|
||||
virtual bool store(float nr, uint32 decimals, String *buffer)
|
||||
{ return false; }
|
||||
virtual bool store(double from, uint32 decimals, String *buffer)
|
||||
{ return false; }
|
||||
virtual bool store(Field *field)
|
||||
{ return false; }
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user