279
279
MYSQL_TYPE_DATE, MYSQL_TYPE_TIME,
280
280
MYSQL_TYPE_DATETIME, MYSQL_TYPE_YEAR,
281
281
MYSQL_TYPE_NEWDATE, MYSQL_TYPE_VARCHAR,
283
MYSQL_TYPE_NEWDECIMAL=246,
286
MYSQL_TYPE_TINY_BLOB=249,
287
MYSQL_TYPE_MEDIUM_BLOB=250,
288
MYSQL_TYPE_LONG_BLOB=251,
290
MYSQL_TYPE_VAR_STRING=253,
291
MYSQL_TYPE_STRING=254,
292
MYSQL_TYPE_GEOMETRY=255
282
MYSQL_TYPE_NEWDECIMAL=247,
285
MYSQL_TYPE_TINY_BLOB=250,
286
MYSQL_TYPE_MEDIUM_BLOB=251,
287
MYSQL_TYPE_LONG_BLOB=252,
289
MYSQL_TYPE_VAR_STRING=254,
290
MYSQL_TYPE_STRING=255
296
293
/* For backward compatibility */
297
294
#define CLIENT_MULTI_QUERIES CLIENT_MULTI_STATEMENTS
298
#define FIELD_TYPE_DECIMAL MYSQL_TYPE_DECIMAL
299
295
#define FIELD_TYPE_NEWDECIMAL MYSQL_TYPE_NEWDECIMAL
300
296
#define FIELD_TYPE_TINY MYSQL_TYPE_TINY
301
297
#define FIELD_TYPE_SHORT MYSQL_TYPE_SHORT
305
301
#define FIELD_TYPE_NULL MYSQL_TYPE_NULL
306
302
#define FIELD_TYPE_TIMESTAMP MYSQL_TYPE_TIMESTAMP
307
303
#define FIELD_TYPE_LONGLONG MYSQL_TYPE_LONGLONG
308
#define FIELD_TYPE_INT24 MYSQL_TYPE_INT24
309
304
#define FIELD_TYPE_DATE MYSQL_TYPE_DATE
310
305
#define FIELD_TYPE_TIME MYSQL_TYPE_TIME
311
306
#define FIELD_TYPE_DATETIME MYSQL_TYPE_DATETIME
321
316
#define FIELD_TYPE_STRING MYSQL_TYPE_STRING
322
317
#define FIELD_TYPE_CHAR MYSQL_TYPE_TINY
323
318
#define FIELD_TYPE_INTERVAL MYSQL_TYPE_ENUM
324
#define FIELD_TYPE_GEOMETRY MYSQL_TYPE_GEOMETRY
325
#define FIELD_TYPE_BIT MYSQL_TYPE_BIT
328
321
/* Shutdown/kill enums and constants */
351
344
/* don't flush InnoDB buffers, flush other storage engines' buffers*/
352
345
SHUTDOWN_WAIT_CRITICAL_BUFFERS= (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1) + 1,
353
346
/* Now the 2 levels of the KILL command */
354
#if MYSQL_VERSION_ID >= 50000
357
348
KILL_CONNECTION= 255
485
476
char *get_tty_password(const char *opt_message);
486
477
const char *mysql_errno_to_sqlstate(unsigned int mysql_errno);
488
/* Some other useful functions */
490
my_bool my_thread_init(void);
491
void my_thread_end(void);
494
481
ulong STDCALL net_field_length(uchar **packet);