1 | /* |
2 | * PROGRAM: JRD access method |
3 | * MODULE: dsc.h |
4 | * DESCRIPTION: Definitions associated with descriptors |
5 | * |
6 | * The contents of this file are subject to the Interbase Public |
7 | * License Version 1.0 (the "License"); you may not use this file |
8 | * except in compliance with the License. You may obtain a copy |
9 | * of the License at http://www.Inprise.com/IPL.html |
10 | * |
11 | * Software distributed under the License is distributed on an |
12 | * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express |
13 | * or implied. See the License for the specific language governing |
14 | * rights and limitations under the License. |
15 | * |
16 | * The Original Code was created by Inprise Corporation |
17 | * and its predecessors. Portions created by Inprise Corporation are |
18 | * Copyright (C) Inprise Corporation. |
19 | * |
20 | * All Rights Reserved. |
21 | * Contributor(s): ______________________________________. |
22 | * 2002.04.16 Paul Beach - HP10 Define changed from -4 to (-4) to make it |
23 | * compatible with the HP Compiler |
24 | */ |
25 | |
26 | #ifndef JRD_DSC_PUB_H |
27 | #define JRD_DSC_PUB_H |
28 | |
29 | |
30 | /* |
31 | * The following flags are used in an internal structure dsc (dsc.h) or in the external one paramdsc (ibase.h) |
32 | */ |
33 | |
34 | /* values for dsc_flags |
35 | * Note: DSC_null is only reliably set for local variables (blr_variable) |
36 | */ |
37 | #define DSC_null 1 |
38 | #define DSC_no_subtype 2 /* dsc has no sub type specified */ |
39 | #define DSC_nullable 4 /* not stored. instead, is derived |
40 | from metadata primarily to flag |
41 | SQLDA (in DSQL) */ |
42 | |
43 | #define dtype_unknown 0 |
44 | #define dtype_text 1 |
45 | #define dtype_cstring 2 |
46 | #define dtype_varying 3 |
47 | |
48 | #define dtype_packed 6 |
49 | #define dtype_byte 7 |
50 | #define dtype_short 8 |
51 | #define dtype_long 9 |
52 | #define dtype_quad 10 |
53 | #define dtype_real 11 |
54 | #define dtype_double 12 |
55 | #define dtype_d_float 13 |
56 | #define dtype_sql_date 14 |
57 | #define dtype_sql_time 15 |
58 | #define dtype_timestamp 16 |
59 | #define dtype_blob 17 |
60 | #define dtype_array 18 |
61 | #define dtype_int64 19 |
62 | #define dtype_dbkey 20 |
63 | #define dtype_boolean 21 |
64 | #define DTYPE_TYPE_MAX 22 |
65 | |
66 | #define ISC_TIME_SECONDS_PRECISION 10000 |
67 | #define ISC_TIME_SECONDS_PRECISION_SCALE (-4) |
68 | |
69 | #endif /* JRD_DSC_PUB_H */ |
70 | |