2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: constants.h
|
|
|
|
* DESCRIPTION: Misc system constants
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
2002-06-29 15:03:13 +02:00
|
|
|
*
|
|
|
|
* 2001.10.08 Claudio Valderrama: frb_sysflag enum with numbering
|
|
|
|
* for automatically created triggers that aren't system triggers.
|
2001-05-23 15:26:42 +02:00
|
|
|
*/
|
|
|
|
|
2003-10-03 03:34:14 +02:00
|
|
|
#ifndef JRD_CONSTANTS_H
|
|
|
|
#define JRD_CONSTANTS_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
/* BLOb Subtype definitions */
|
|
|
|
|
|
|
|
/* Subtypes < 0 are user defined
|
|
|
|
* Subtype 0 means "untyped"
|
|
|
|
* Subtypes > 0 are InterBase defined
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define BLOB_untyped 0
|
|
|
|
|
|
|
|
/* InterBase defined BLOb subtypes */
|
|
|
|
|
|
|
|
#define BLOB_text 1
|
|
|
|
#define BLOB_blr 2
|
|
|
|
#define BLOB_acl 3
|
|
|
|
#define BLOB_ranges 4
|
|
|
|
#define BLOB_summary 5
|
|
|
|
#define BLOB_format 6
|
|
|
|
#define BLOB_tra 7
|
|
|
|
#define BLOB_extfile 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Column Limits */
|
|
|
|
|
|
|
|
#define MAX_COLUMN_SIZE 32767 /* Bytes */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Misc constant values */
|
|
|
|
|
|
|
|
#define USERNAME_LENGTH 31 /* Bytes */
|
|
|
|
|
|
|
|
/* literal strings in rdb$ref_constraints to be used to identify
|
|
|
|
the cascade actions for referential constraints. Used
|
|
|
|
by isql/show and isql/extract for now. */
|
|
|
|
|
|
|
|
#define RI_ACTION_CASCADE "CASCADE"
|
|
|
|
#define RI_ACTION_NULL "SET NULL"
|
|
|
|
#define RI_ACTION_DEFAULT "SET DEFAULT"
|
|
|
|
#define RI_ACTION_NONE "NO ACTION"
|
|
|
|
#define RI_RESTRICT "RESTRICT"
|
|
|
|
|
|
|
|
|
2002-06-29 15:03:13 +02:00
|
|
|
/******************************************/
|
|
|
|
/* System flag meaning - mainly Firebird. */
|
|
|
|
/******************************************/
|
|
|
|
|
|
|
|
enum frb_sysflag {
|
|
|
|
frb_sysflag_user = 0,
|
|
|
|
frb_sysflag_system = 1,
|
|
|
|
frb_sysflag_qli = 2,
|
|
|
|
frb_sysflag_check_constraint = 3,
|
|
|
|
frb_sysflag_referential_constraint = 4,
|
|
|
|
frb_sysflag_view_check = 5
|
|
|
|
};
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
/* UDF Arguments are numbered from 0 to MAX_UDF_ARGUMENTS --
|
2002-06-29 15:03:13 +02:00
|
|
|
argument 0 is reserved for the return-type of the UDF */
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#define MAX_UDF_ARGUMENTS 10
|
|
|
|
|
2003-09-28 23:36:05 +02:00
|
|
|
// Maximum length of single line returned from pretty printer
|
|
|
|
#define PRETTY_BUFFER_SIZE 1024
|
|
|
|
|
2003-10-17 22:29:52 +02:00
|
|
|
#define MAX_INDEX_SEGMENTS 16
|
|
|
|
|
2003-11-03 18:14:45 +01:00
|
|
|
// Maximum index key length
|
|
|
|
#define MAX_KEY 256
|
|
|
|
|
2003-10-03 03:34:14 +02:00
|
|
|
#endif /* JRD_CONSTANTS_H */
|
2003-10-17 22:29:52 +02:00
|
|
|
|