~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

Merged in fix-headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
#include CSTDINT_H
20
21
 
21
22
/**
22
23
 * @file
377
378
#define IS_EQUAL_YES 1
378
379
#define IS_EQUAL_PACK_LENGTH 2
379
380
 
 
381
 
 
382
/**
 
383
  Query type constants.
 
384
 
 
385
  QT_ORDINARY -- ordinary SQL query.
 
386
  QT_IS -- SQL query to be shown in INFORMATION_SCHEMA (in utf8 and without
 
387
  character set introducers).
 
388
 
 
389
  @TODO
 
390
 
 
391
  Move this out of here once Stew's done with UDF breakout.  The following headers need it:
 
392
 
 
393
    sql_lex.h --> included by sql_class.h
 
394
    item.h
 
395
    table.h
 
396
    item_func.h
 
397
    item_subselect.h
 
398
    item_timefunc.h
 
399
    item_sum.h
 
400
    item_cmpfunc.h
 
401
    item_strfunc.h
 
402
*/
 
403
enum enum_query_type
 
404
{
 
405
  QT_ORDINARY,
 
406
  QT_IS
 
407
};
 
408
 
 
409
 
 
410
/**
 
411
 * @TODO Move to a separate header?
 
412
 *
 
413
 * It's needed by item.h and field.h, which are both inter-dependent
 
414
 * and contain forward declarations of many structs/classes in the
 
415
 * other header file.
 
416
 *
 
417
 * What is needed is a separate header file that is included
 
418
 * by *both* item.h and field.h to resolve inter-dependencies
 
419
 *
 
420
 * But, probably want to hold off on this until Stew finished the UDF cleanup
 
421
 */
 
422
enum Derivation
 
423
{
 
424
  DERIVATION_IGNORABLE= 5,
 
425
  DERIVATION_COERCIBLE= 4,
 
426
  DERIVATION_SYSCONST= 3,
 
427
  DERIVATION_IMPLICIT= 2,
 
428
  DERIVATION_NONE= 1,
 
429
  DERIVATION_EXPLICIT= 0
 
430
};
 
431
 
 
432
/**
 
433
 * Opening modes for open_temporary_table and open_table_from_share
 
434
 *
 
435
 * @TODO Put this into an appropriate header. It is only needed in:
 
436
 *
 
437
 *    table.cc
 
438
 *    sql_base.cc
 
439
 */
 
440
enum open_table_mode
 
441
{
 
442
  OTM_OPEN= 0,
 
443
  OTM_CREATE= 1,
 
444
  OTM_ALTER= 2
 
445
};
 
446
 
 
447
enum enum_parsing_place
 
448
{
 
449
  NO_MATTER
 
450
  , IN_HAVING
 
451
  , SELECT_LIST
 
452
  , IN_WHERE
 
453
  , IN_ON
 
454
};
 
455
 
 
456
enum enum_mysql_completiontype {
 
457
  ROLLBACK_RELEASE= -2
 
458
  , ROLLBACK= 1
 
459
  , ROLLBACK_AND_CHAIN= 7
 
460
  , COMMIT_RELEASE= -1
 
461
  , COMMIT= 0
 
462
  , COMMIT_AND_CHAIN= 6
 
463
};
 
464
 
 
465
enum enum_check_fields
 
466
{
 
467
  CHECK_FIELD_IGNORE
 
468
  , CHECK_FIELD_WARN
 
469
  , CHECK_FIELD_ERROR_FOR_NULL
 
470
};
 
471
 
 
472
enum enum_var_type
 
473
{
 
474
  OPT_DEFAULT= 0
 
475
  , OPT_SESSION
 
476
  , OPT_GLOBAL
 
477
};
 
478
 
380
479
typedef uint64_t query_id_t;
381
480
 
382
 
 
383
481
#endif /* DRIZZLE_SERVER_DEFINITIONS_H */