mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Include file alignment fixes.
This commit is contained in:
@@ -19,45 +19,45 @@ typedef void FAR *HSTMT;
|
||||
typedef signed short RETCODE;
|
||||
|
||||
#ifdef WIN32
|
||||
#define SQL_API __stdcall
|
||||
#define SQL_API __stdcall
|
||||
#else
|
||||
#define SQL_API EXPORT CALLBACK
|
||||
#define SQL_API EXPORT CALLBACK
|
||||
#endif
|
||||
|
||||
#define ODBCVER 0x0250
|
||||
#define ODBCVER 0x0250
|
||||
|
||||
#define SQL_MAX_MESSAGE_LENGTH 512
|
||||
#define SQL_MAX_DSN_LENGTH 32
|
||||
|
||||
/* return code */
|
||||
#define SQL_INVALID_HANDLE (-2)
|
||||
#define SQL_ERROR (-1)
|
||||
#define SQL_INVALID_HANDLE (-2)
|
||||
#define SQL_ERROR (-1)
|
||||
#define SQL_SUCCESS 0
|
||||
#define SQL_SUCCESS_WITH_INFO 1
|
||||
#define SQL_NO_DATA_FOUND 100
|
||||
|
||||
/* standard SQL datatypes (agree with ANSI type numbering) */
|
||||
#define SQL_CHAR 1
|
||||
#define SQL_NUMERIC 2
|
||||
#define SQL_DECIMAL 3
|
||||
#define SQL_INTEGER 4
|
||||
#define SQL_SMALLINT 5
|
||||
#define SQL_FLOAT 6
|
||||
#define SQL_REAL 7
|
||||
#define SQL_DOUBLE 8
|
||||
#define SQL_VARCHAR 12
|
||||
#define SQL_CHAR 1
|
||||
#define SQL_NUMERIC 2
|
||||
#define SQL_DECIMAL 3
|
||||
#define SQL_INTEGER 4
|
||||
#define SQL_SMALLINT 5
|
||||
#define SQL_FLOAT 6
|
||||
#define SQL_REAL 7
|
||||
#define SQL_DOUBLE 8
|
||||
#define SQL_VARCHAR 12
|
||||
|
||||
#define SQL_TYPE_MIN SQL_CHAR
|
||||
#define SQL_TYPE_NUL 0
|
||||
#define SQL_TYPE_MAX SQL_VARCHAR
|
||||
#define SQL_TYPE_MIN SQL_CHAR
|
||||
#define SQL_TYPE_NUL 0
|
||||
#define SQL_TYPE_MAX SQL_VARCHAR
|
||||
|
||||
/* C to SQL datatype mapping */
|
||||
#define SQL_C_CHAR SQL_CHAR
|
||||
#define SQL_C_LONG SQL_INTEGER
|
||||
#define SQL_C_SHORT SQL_SMALLINT
|
||||
#define SQL_C_FLOAT SQL_REAL
|
||||
#define SQL_C_DOUBLE SQL_DOUBLE
|
||||
#define SQL_C_DEFAULT 99
|
||||
#define SQL_C_CHAR SQL_CHAR
|
||||
#define SQL_C_LONG SQL_INTEGER
|
||||
#define SQL_C_SHORT SQL_SMALLINT
|
||||
#define SQL_C_FLOAT SQL_REAL
|
||||
#define SQL_C_DOUBLE SQL_DOUBLE
|
||||
#define SQL_C_DEFAULT 99
|
||||
|
||||
#define SQL_NO_NULLS 0
|
||||
#define SQL_NULLABLE 1
|
||||
@@ -69,18 +69,18 @@ typedef signed short RETCODE;
|
||||
#define SQL_NTS (-3)
|
||||
|
||||
/* SQLFreeStmt flag values */
|
||||
#define SQL_CLOSE 0
|
||||
#define SQL_DROP 1
|
||||
#define SQL_UNBIND 2
|
||||
#define SQL_RESET_PARAMS 3
|
||||
#define SQL_CLOSE 0
|
||||
#define SQL_DROP 1
|
||||
#define SQL_UNBIND 2
|
||||
#define SQL_RESET_PARAMS 3
|
||||
|
||||
/* SQLTransact flag values */
|
||||
#define SQL_COMMIT 0
|
||||
#define SQL_ROLLBACK 1
|
||||
#define SQL_COMMIT 0
|
||||
#define SQL_ROLLBACK 1
|
||||
|
||||
/* SQLColAttributes flag values */
|
||||
#define SQL_COLUMN_COUNT 0
|
||||
#define SQL_COLUMN_LABEL 18
|
||||
#define SQL_COLUMN_COUNT 0
|
||||
#define SQL_COLUMN_LABEL 18
|
||||
#define SQL_COLATT_OPT_MAX SQL_COLUMN_LABEL
|
||||
#define SQL_COLUMN_DRIVER_START 1000
|
||||
|
||||
@@ -95,16 +95,16 @@ typedef signed short RETCODE;
|
||||
typedef unsigned char BYTE;
|
||||
|
||||
/* More SQLColAttributes flag values */
|
||||
#define SQL_COLUMN_NAME 1
|
||||
#define SQL_COLUMN_TYPE 2
|
||||
#define SQL_COLUMN_LENGTH 3
|
||||
#define SQL_COLUMN_PRECISION 4
|
||||
#define SQL_COLUMN_SCALE 5
|
||||
#define SQL_COLUMN_DISPLAY_SIZE 6
|
||||
#define SQL_COLUMN_NULLABLE 7
|
||||
#define SQL_COLUMN_UNSIGNED 8
|
||||
#define SQL_COLUMN_MONEY 9
|
||||
#define SQL_COLUMN_UPDATABLE 10
|
||||
#define SQL_COLUMN_NAME 1
|
||||
#define SQL_COLUMN_TYPE 2
|
||||
#define SQL_COLUMN_LENGTH 3
|
||||
#define SQL_COLUMN_PRECISION 4
|
||||
#define SQL_COLUMN_SCALE 5
|
||||
#define SQL_COLUMN_DISPLAY_SIZE 6
|
||||
#define SQL_COLUMN_NULLABLE 7
|
||||
#define SQL_COLUMN_UNSIGNED 8
|
||||
#define SQL_COLUMN_MONEY 9
|
||||
#define SQL_COLUMN_UPDATABLE 10
|
||||
#define SQL_COLUMN_AUTO_INCREMENT 11
|
||||
#define SQL_COLUMN_CASE_SENSITIVE 12
|
||||
#define SQL_COLUMN_SEARCHABLE 13
|
||||
@@ -114,15 +114,15 @@ typedef unsigned char BYTE;
|
||||
#define SQL_COLUMN_QUALIFIER_NAME 17
|
||||
|
||||
/* SQLColAttributes Searchable flags */
|
||||
#define SQL_UNSEARCHABLE 0
|
||||
#define SQL_LIKE_ONLY 1
|
||||
#define SQL_ALL_EXCEPT_LIKE 2
|
||||
#define SQL_SEARCHABLE 3
|
||||
#define SQL_PRED_SEARCHABLE SQL_SEARCHABLE
|
||||
#define SQL_UNSEARCHABLE 0
|
||||
#define SQL_LIKE_ONLY 1
|
||||
#define SQL_ALL_EXCEPT_LIKE 2
|
||||
#define SQL_SEARCHABLE 3
|
||||
#define SQL_PRED_SEARCHABLE SQL_SEARCHABLE
|
||||
|
||||
/* SQLColAttributes Updateable flags */
|
||||
#define SQL_ATTR_READONLY 0
|
||||
#define SQL_ATTR_WRITE 1
|
||||
#define SQL_ATTR_READONLY 0
|
||||
#define SQL_ATTR_WRITE 1
|
||||
#define SQL_ATTR_READWRITE_UNKNOWN 2
|
||||
|
||||
/*
|
||||
@@ -133,11 +133,9 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
RETCODE SQL_API SQLAllocConnect(HENV henv,
|
||||
HDBC FAR *phdbc);
|
||||
RETCODE SQL_API SQLAllocConnect(HENV henv, HDBC FAR *phdbc);
|
||||
RETCODE SQL_API SQLAllocEnv(HENV FAR *phenv);
|
||||
RETCODE SQL_API SQLAllocStmt(HDBC hdbc,
|
||||
HSTMT FAR *phstmt);
|
||||
RETCODE SQL_API SQLAllocStmt(HDBC hdbc, HSTMT FAR *phstmt);
|
||||
RETCODE SQL_API SQLBindCol(HSTMT hstmt,
|
||||
UWORD icol,
|
||||
SWORD fCType,
|
||||
@@ -217,7 +215,8 @@ extern "C"
|
||||
RETCODE SQL_API SQLTransact(HENV henv, HDBC hdbc,
|
||||
UWORD fType);
|
||||
|
||||
RETCODE SQL_API SQLSetParam(HSTMT hstmt, UWORD ipar,
|
||||
RETCODE SQL_API SQLSetParam(HSTMT hstmt,
|
||||
UWORD ipar,
|
||||
SWORD fCType,
|
||||
SWORD fSqlType,
|
||||
UDWORD cbColDef,
|
||||
|
||||
Reference in New Issue
Block a user