mirror of
https://github.com/MariaDB/server.git
synced 2025-12-03 05:41:09 +03:00
Huge pull
BitKeeper/etc/logging_ok: auto-union BitKeeper/deleted/.del-sql_error.cc~2f1caca8d2485dbe: Auto merged BitKeeper/deleted/.del-sql_prepare.cc~f703729793935ed6: Auto merged include/mysql.h: Auto merged include/violite.h: Auto merged libmysqld/embedded_priv.h: Auto merged libmysqld/lib_sql.cc: Auto merged libmysqld/lib_vio.c: Auto merged sql/field.h: Auto merged sql/ha_myisam.cc: Auto merged sql/item.cc: Auto merged sql/item_strfunc.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_handler.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_table.cc: Auto merged
This commit is contained in:
@@ -839,8 +839,9 @@ err:
|
||||
}
|
||||
|
||||
|
||||
/* Execute one command from socket (query or simple command) */
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
|
||||
/* Execute one command from socket (query or simple command) */
|
||||
bool do_command(THD *thd)
|
||||
{
|
||||
char *packet;
|
||||
@@ -879,6 +880,7 @@ bool do_command(THD *thd)
|
||||
DBUG_RETURN(dispatch_command(command,thd, packet+1, (uint) packet_length));
|
||||
}
|
||||
|
||||
#endif /* EMBEDDED_LIBRARY */
|
||||
|
||||
bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
char* packet, uint packet_length)
|
||||
@@ -3195,7 +3197,6 @@ bool add_field_to_list(char *field_name, enum_field_types type,
|
||||
case FIELD_TYPE_STRING:
|
||||
case FIELD_TYPE_VAR_STRING:
|
||||
case FIELD_TYPE_NULL:
|
||||
case FIELD_TYPE_GEOMETRY:
|
||||
break;
|
||||
case FIELD_TYPE_DECIMAL:
|
||||
if (!length)
|
||||
@@ -3208,6 +3209,7 @@ bool add_field_to_list(char *field_name, enum_field_types type,
|
||||
case FIELD_TYPE_TINY_BLOB:
|
||||
case FIELD_TYPE_LONG_BLOB:
|
||||
case FIELD_TYPE_MEDIUM_BLOB:
|
||||
case FIELD_TYPE_GEOMETRY:
|
||||
if (default_value) // Allow empty as default value
|
||||
{
|
||||
String str,*res;
|
||||
@@ -3343,7 +3345,7 @@ bool add_field_to_list(char *field_name, enum_field_types type,
|
||||
|
||||
if (new_field->length >= MAX_FIELD_WIDTH ||
|
||||
(!new_field->length && !(new_field->flags & BLOB_FLAG) &&
|
||||
type != FIELD_TYPE_STRING && type != FIELD_TYPE_VAR_STRING))
|
||||
type != FIELD_TYPE_STRING && type != FIELD_TYPE_VAR_STRING && type != FIELD_TYPE_GEOMETRY))
|
||||
{
|
||||
net_printf(thd,ER_TOO_BIG_FIELDLENGTH,field_name,
|
||||
MAX_FIELD_WIDTH-1); /* purecov: inspected */
|
||||
|
||||
Reference in New Issue
Block a user