mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix for Bug#3035 "Prepared statement integer inserts": now unsigned
flag is sent to server with placeholder types. There were no need to extend the protocol as one additional byte was reserved for placeholder code, when placeholder code is in range 0-255. So this byte is now used for flags. Post-review fixes added.
This commit is contained in:
@@ -223,17 +223,6 @@ enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
|
||||
#define FIELD_TYPE_INTERVAL MYSQL_TYPE_ENUM
|
||||
#define FIELD_TYPE_GEOMETRY MYSQL_TYPE_GEOMETRY
|
||||
|
||||
#if TO_BE_INCLUDED_LATER
|
||||
/* For bind applications, to indicate unsigned buffers */
|
||||
#define MYSQL_TYPE_UTINY -10
|
||||
#define MYSQL_TYPE_USHORT -9
|
||||
#define MYSQL_TYPE_ULONG -8
|
||||
#define MYSQL_TYPE_UFLOAT -7
|
||||
#define MYSQL_TYPE_UDOUBLE -6
|
||||
#define MYSQL_TYPE_ULONGLONG -5
|
||||
#define MYSQL_TYPE_UINT24 -4
|
||||
#endif
|
||||
|
||||
/* options for mysql_set_option */
|
||||
enum enum_mysql_set_option
|
||||
{
|
||||
|
Reference in New Issue
Block a user