diff options
Diffstat (limited to 'src/interfaces/odbc/psqlodbc.h')
-rw-r--r-- | src/interfaces/odbc/psqlodbc.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/interfaces/odbc/psqlodbc.h b/src/interfaces/odbc/psqlodbc.h index 431f6a4922f..fae864bd4d1 100644 --- a/src/interfaces/odbc/psqlodbc.h +++ b/src/interfaces/odbc/psqlodbc.h @@ -5,7 +5,7 @@ * * Comments: See "notice.txt" for copyright and license information. * - * $Id: psqlodbc.h,v 1.68 2002/06/28 02:44:15 inoue Exp $ + * $Id: psqlodbc.h,v 1.69 2002/07/11 01:52:46 inoue Exp $ * */ @@ -27,6 +27,10 @@ #define ODBCVER 0x0250 #endif /* ODBCVER_REP */ +#ifndef NAMEDATALEN +#define NAMEDATALEN 32 +#endif /* NAMEDATALEN */ + #if defined(WIN32) || defined(WITH_UNIXODBC) || defined(WITH_IODBC) #include <sql.h> @@ -124,9 +128,9 @@ typedef UInt4 Oid; #define BYTELEN 8 #define VARHDRSZ sizeof(Int4) -#define MAX_SCHEMA_LEN 32 -#define MAX_TABLE_LEN 32 -#define MAX_COLUMN_LEN 32 +#define MAX_SCHEMA_LEN NAMEDATALEN +#define MAX_TABLE_LEN NAMEDATALEN +#define MAX_COLUMN_LEN NAMEDATALEN #define MAX_CURSOR_LEN 32 /* Registry length limits */ @@ -239,7 +243,7 @@ void logs_on_off(int cnopen, int, int); #define TEXT_FIELD_SIZE 8190 /* size of text fields * (not including null * term) */ -#define NAME_FIELD_SIZE 32 /* size of name fields */ +#define NAME_FIELD_SIZE NAMEDATALEN /* size of name fields */ #define MAX_VARCHAR_SIZE 254 /* maximum size of a varchar (not * including null term) */ |