mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 00:35:32 +02:00
in 4.1 DATABASE() may be NULL
This commit is contained in:
parent
e1ee41175c
commit
0d07df3d8d
1 changed files with 3 additions and 2 deletions
|
|
@ -359,9 +359,10 @@ class Item_func_database :public Item_str_func
|
|||
public:
|
||||
Item_func_database() { collation.set(system_charset_info,DERIVATION_IMPLICIT); }
|
||||
String *val_str(String *);
|
||||
void fix_length_and_dec()
|
||||
{
|
||||
void fix_length_and_dec()
|
||||
{
|
||||
max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen;
|
||||
maybe_null=1;
|
||||
}
|
||||
const char *func_name() const { return "database"; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue