1 | /* |
2 | * This file is part of Soprano Project |
3 | * |
4 | * Copyright (C) 2009 Sebastian Trueg <trueg@kde.org> |
5 | * Based on iodbcext.h |
6 | * Copyright (C) 1996-2009 by OpenLink Software <iodbc@openlinksw.com> |
7 | * |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Library General Public |
10 | * License as published by the Free Software Foundation; either |
11 | * version 2 of the License, or (at your option) any later version. |
12 | * |
13 | * This library is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Library General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Library General Public License |
19 | * along with this library; see the file COPYING.LIB. If not, write to |
20 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 | * Boston, MA 02110-1301, USA. |
22 | */ |
23 | |
24 | #ifndef _SOPRANO_VIRTUOSO_ODBC_EXT_H_ |
25 | #define _SOPRANO_VIRTUOSO_ODBC_EXT_H_ |
26 | |
27 | /* |
28 | * ODBC extensions for SQLGetDescField |
29 | */ |
30 | #define SQL_DESC_COL_DV_TYPE 1057L |
31 | #define SQL_DESC_COL_DT_DT_TYPE 1058L |
32 | #define SQL_DESC_COL_LITERAL_ATTR 1059L |
33 | #define SQL_DESC_COL_BOX_FLAGS 1060L |
34 | #define SQL_DESC_COL_LITERAL_LANG 1061L |
35 | #define SQL_DESC_COL_LITERAL_TYPE 1062L |
36 | |
37 | /* |
38 | * Virtuoso - ODBC SQL_DESC_COL_DV_TYPE |
39 | */ |
40 | #define VIRTUOSO_DV_DATE 129 |
41 | #define VIRTUOSO_DV_DATETIME 211 |
42 | #define VIRTUOSO_DV_DOUBLE_FLOAT 191 |
43 | #define VIRTUOSO_DV_IRI_ID 243 |
44 | #define VIRTUOSO_DV_LONG_INT 189 |
45 | #define VIRTUOSO_DV_NUMERIC 219 |
46 | #define VIRTUOSO_DV_RDF 246 |
47 | #define VIRTUOSO_DV_SINGLE_FLOAT 190 |
48 | #define VIRTUOSO_DV_STRING 182 |
49 | #define VIRTUOSO_DV_TIME 210 |
50 | #define VIRTUOSO_DV_TIMESTAMP 128 |
51 | #define VIRTUOSO_DV_TIMESTAMP_OBJ 208 |
52 | |
53 | /* |
54 | * Virtuoso - ODBC SQL_DESC_COL_DT_DT_TYPE |
55 | */ |
56 | #define VIRTUOSO_DT_TYPE_DATETIME 1 |
57 | #define VIRTUOSO_DT_TYPE_DATE 2 |
58 | #define VIRTUOSO_DT_TYPE_TIME 3 |
59 | |
60 | /* |
61 | * Virtuoso - ODBC SQL_DESC_COL_BOX_FLAGS |
62 | */ |
63 | #define VIRTUOSO_BF_IRI 0x1 |
64 | #define VIRTUOSO_BF_UTF8 0x2 |
65 | #define VIRTUOSO_BF_DEFAULT_ENC 0x4 |
66 | |
67 | #endif |
68 | |