rasdaman complete source
sqlglobals.h
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 */
23 /*****************************************************************************
24  *
25  *
26  * PURPOSE:
27  * provide global definitions for embedded SQL usage (any base DBMS)
28  *
29  *
30  * COMMENTS:
31  * - further SQL-relevant constants for C++ usage can be found in externs.h
32  *
33  *****************************************************************************/
34 
35 #ifndef _SQLGLOBALS_H_
36 #define _SQLGLOBALS_H_
37 
38 // this syntax should be the same for all embedded SQL versions
39 // right now only tested & used with Informix, though
40 
41 // max length of varchar attributes and other string buffers; incl padding zero
42 // see $(INFORMIXDIR)/incl/esql/varchar.h
43 // unfortunately there it is not made known to ESQL, so we must use a literal here
44 EXEC SQL define VARCHAR_MAXLEN 255;
45 EXEC SQL define STRING_MAXLEN 255;
46 
47 // SQL query string buffer size
48 #define SQL_QUERY_BUFFER_SIZE 400
49 
50 #endif // _SQLGLOBALS_H_
EXEC SQL define STRING_MAXLEN
Definition: sqlglobals.h:45
EXEC SQL define VARCHAR_MAXLEN
Definition: sqlglobals.h:44