1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-13919 sql_mode=ORACLE: Derive length of VARCHAR SP parameters with no length from actual parameters

This commit is contained in:
halfspawn
2017-09-27 16:49:40 +02:00
parent d387bc89ed
commit f44d5de689
9 changed files with 251 additions and 21 deletions

View File

@ -65,6 +65,7 @@ class in_vector;
class Type_handler_hybrid_field_type;
class Sort_param;
class Arg_comparator;
class Spvar_definition;
struct st_value;
class Protocol;
class handler;
@ -688,6 +689,10 @@ public:
type_handler_adjusted_to_max_octet_length(uint max_octet_length,
CHARSET_INFO *cs) const
{ return this; }
virtual bool adjust_spparam_type(Spvar_definition *def, Item *from) const
{
return false;
}
virtual ~Type_handler() {}
/**
Determines MariaDB traditional data types that always present
@ -2523,6 +2528,7 @@ public:
const Record_addr &addr,
const Type_all_attributes &attr,
TABLE *table) const;
bool adjust_spparam_type(Spvar_definition *def, Item *from) const;
};