dbdefs.r.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 
11 /*----------------------------------------------------------------------+
12 | |
13 | Linkage types recognized by MicroStation servers. |
14 | |
15 +----------------------------------------------------------------------*/
16 #define INFORMIX_LINKAGE 1
17 #define DMRS_LINKAGE 2
18 #define XBASE_LINKAGE 4
19 /* DBASE_LINKAGE only exists for backwards compatibility, in future use XBASE_LINKAGE */
20 #define DBASE_LINKAGE 4
21 #define ORACLE_LINKAGE 8
22 #define RIS_LINKAGE 16
23 #define INGRES_LINKAGE 32
24 #define SYBASE_LINKAGE 64
25 #define ODBC_LINKAGE 128
26 #define OLEDB_LINKAGE 256
27 #define BUDBC_LINKAGE 512
28 
29 /*----------------------------------------------------------------------+
30 | |
31 | Signature words used for user data linkages. |
32 | |
33 +----------------------------------------------------------------------*/
34 #define INFORMIX_ID 0x3948 /* Informix user data signature */
35 #define XBASE_ID 0x1971 /* Xbase(dBASE) user data signature */
36 #define DBASE_ID 0x1971 /* exists for backwards compatibility to Xbase */
37 #define RIS_ID 0x71fb /* RIS user data signature */
38 #define ORACLE_ID 0x6091 /* Oracle user data signature */
39 #define INGRES_ID 0x3a77 /* INGRES user data signature (ING) */
40 #define SYBASE_ID 0x4F58 /* Sybase user data signature (C.G)? */
41 #define ODBC_ID 0x5e62 /* ODBC user data signature (ODB) */
42 #define OLEDB_ID 0x5800 /* OLEDB user data signature */
43 #define BUDBC_ID 0x5834 /* BUDBC user data signature */
44 
45 #define PRIMARY_ID 0x6091 /* ID for Oracle linkage */
46 #define SECONDARY_ID 0xf81 /* Secondary ID link (BSI radix 50) */
47 
48 
49 /*----------------------------------------------------------------------+
50 | |
51 | Miscellaneous constants - some of these are related to the |
52 | size of mscatalog columns. They should be kept in synch. |
53 | |
54 +----------------------------------------------------------------------*/
55 #define MAX_SCREEN_FORM 64
56 #define MAX_FORM_TABLE 64
57 #define MAX_FORM_TYPE 64
58 #define MAX_REPORT_TABLE 64
59 #define MAX_SQL_REVIEW 2048
60 #define MAX_FENCE_FILTER 2048
61 #define MAX_DAS_TABLE 32
62 #define MAX_FORM_TYPE 64
63 
64 
65 /*----------------------------------------------------------------------+
66 | |
67 | Column data types. |
68 | |
69 +----------------------------------------------------------------------*/
70 #define DB_CHAR 1
71 #define DB_NUMBER 2
72 #define DB_REAL 2
73 #define DB_DATE 3
74 #define DB_INTEGER 4
75 #define DB_RAW 5
76 #define DB_BINARY 6
77 #define DB_OBJECT 7
78 #define DB_ARRAY 8
79 #define DB_ROWID 9
80 #define DB_UNDEFINED 99

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.