27 #if defined(_WIN32) || defined(_WIN64)
33 #include <sys/types.h>
39 #if defined(HAVE_LOCALECONV) || defined(_WIN32) || defined(_WIN64)
51 #include <iodbcinst.h>
53 #if defined(HAVE_UNIXODBC) || defined(_WIN32) || defined(_WIN64)
62 #define SQLLEN SQLINTEGER
65 #define SQLLEN_PTR SQLLEN *
68 #define SQLULEN SQLUINTEGER
71 #ifndef HAVE_SQLROWCOUNT
72 #define SQLROWCOUNT SQLUINTEGER
75 #ifndef HAVE_SQLSETPOSIROW
76 #define SQLSETPOSIROW SQLUSMALLINT
79 #ifndef HAVE_SQLROWOFFSET
80 #define SQLROWOFFSET SQLLEN
83 #ifndef HAVE_SQLROWSETSIZE
84 #define SQLROWSETSIZE SQLULEN
99 #if defined(_WIN32) || defined(_WIN64)
146 #ifdef USE_DLOPEN_FOR_GPPS
150 #if defined(_WIN32) || defined(_WIN64)
sqlite3_stmt * s3stmt
SQLite statement handle or NULL.
SQLULEN paramset_size
SQL_ATTR_PARAMSET_SIZE.
sqlite_int64 s3lival
SQLite3 64bit integer value.
int busyint
Interrupt busy handler from SQLCancel()
void * parbuf
Buffer for SQL_LEN_DATA_AT_EXEC etc.
Internal dynamic string buffer.
int longnames
Don't shorten column names.
int nocreat
Don't auto create database file.
struct dbc * dbcs
Pointer to first DBC.
void * param0
Parameter buffer, initial value.
int * ov3
True for SQL_OV_ODBC3.
int dobigint
Force SQL_BIGINT for INTEGER columns.
SQLCHAR * query
Current query, raw string.
sqlite3 * sqlite
SQLITE database handle.
int guessed_types
Flag for drvprepare()/drvexecute()
SQLCHAR logmsg[1024]
Message for SQLError()
char ** rows
2-dim array, result set
int step_enable
True for sqlite_compile/step/finalize.
int ispk
Flag for primary key (> 0)
int intrans
True when transaction started.
int shortnames
Always use short column names.
SQLULEN * parm_bind_offs
SQL_ATTR_PARAM_BIND_OFFSET_PTR.
void * s3val
SQLite3 value buffer.
Internal structure for bound column (SQLBindCol).
int nrows
Number of result rows.
Driver internal structure for database connection (HDBC).
SQLULEN row_count0
Row count.
int s3ival
SQLite3 integer value.
struct stmt * cur_s3stmt
Current STMT executing sqlite statement.
int need
True when SQL_LEN_DATA_AT_EXEC.
SQLULEN parm_bind_type
SQL_ATTR_PARAM_BIND_TYPE.
int * ov3
True for SQL_OV_ODBC3.
SQLULEN * row_count
Row count pointer.
char sqlstate[6]
SQL state for SQLError()
int inc
Increment for paramset size > 1.
char * column
Column name.
int version
SQLITE version number.
char * dsn
ODBC data source name.
int curtype
Default cursor type.
Driver internal structure representing SQL statement (HSTMT).
SQLUINTEGER paramset_nrows
Row count for paramset handling.
int autocommit
Auto commit state.
SQLCHAR logmsg[1024]
Message for SQLError()
int isrowid
Flag for ROWID column (> 0)
int prec
Precision of column.
ENV * env
Pointer to environment.
BINDPARM * bindparms
Array of bound parameters.
COL * cols
Result column array.
SQLULEN bind_type
SQL_ATTR_ROW_BIND_TYPE.
SQLPOINTER valp
Value buffer.
int ov3
True for SQL_OV_ODBC3.
SQLUSMALLINT * parm_oper
SQL_ATTR_PARAM_OPERATION_PTR.
char * dbname
SQLITE database name.
int fksupport
Foreign keys on or off.
int s3stmt_needmeta
True to get meta data in s3stmt_step().
int rowprs
Current start row of rowset.
int s3stmt_rownum
Current row number.
int * jdconv
True for julian day conversion.
SQLUSMALLINT row_status1
Internal status array for 1 row rowsets.
SQLLEN * lenp
Value return, actual size of value buffer.
SQLULEN retr_data
SQL_ATTR_RETRIEVE_DATA.
int longnames
Don't shorten column names.
int index
Index of column in result.
SQLSMALLINT type
ODBC type.
struct dbc * next
Pointer to next DBC.
int nowchar
Don't try to use WCHAR.
double s3dval
SQLite3 float value.
int pwdLen
Length of password.
int ncols
Number of result columns.
SQLUSMALLINT * row_status
Row status pointer.
SQLCHAR cursorname[32]
Cursor name.
struct stmt * next
Linkage for STMT list in DBC.
char * bincache
Cache for blob data.
SQLINTEGER * bkmrkptr
SQL_ATTR_FETCH_BOOKMARK_PTR.
int notnull
NOT NULL constraint on column.
int timeout
Lock timeout value.
SQLULEN max_rows
SQL_ATTR_MAX_ROWS.
char * label
Column label or NULL.
int type
Data type of column.
int nowchar[2]
Don't try to use WCHAR.
int binlen
Length of blob data.
SQLLEN * lenp0
Actual size of parameter buffer, initial value.
int * oemcp
True for Win32 OEM CP translation.
SQLUSMALLINT * row_status0
Internal status array.
int nbindcols
Number of entries in bindcols.
int isselect
0 if query is a SELECT statement
SQLLEN * lenp
Actual size of parameter buffer.
char * pwd
Password or NULL.
Driver internal structure for environment (HENV).
FILE * trace
sqlite3_trace() file pointer or NULL
int autoinc
AUTO_INCREMENT column.
long t0
Start time for SQLITE busy handler.
int naterr
Native error code.
char sqlstate[6]
SQL state for SQLError()
int bound
True when SQLBindParameter() called.
void(* rowfree)()
Free function for rows.
void * param
Parameter buffer.
int one_tbl
Flag for single table (> 0)
int scale
from SQLBindParameter()
COL * dyncols
Column array, but malloc()ed.
int dobigint
Force SQL_BIGINT for INTEGER columns.
int index
Index of column in result.
int bkmrk
True when bookmarks used.
SQLULEN * parm_proc
SQL_ATTR_PARAMS_PROCESSED_PTR.
SQLULEN * bind_offs
SQL_ATTR_ROW_BIND_OFFSET_PTR.
BINDCOL * bindcols
Array of bound columns.
int rowp
Current result row.
int scale
Scale of column.
int ov3val
True for SQL_OV_ODBC3.
SQLUSMALLINT * parm_status
SQL_ATTR_PARAMS_STATUS_PTR.
int jdconv
True for julian day conversion.
int has_rowid
Flag for ROWID (>= 0 or -1)
BINDCOL bkmrkcol
Bookmark bound column.
SQLULEN rowset_size
Size of rowset.
int oemcp
True for Win32 OEM CP translation.
char * bincell
Cache for blob data.
int nparams
Number of parameters in query.
Internal structure for bound parameter (SQLBindParameter).
int nbindparms
Number bound parameters.
Internal structure to describe a column in a result set.
int has_pk
Flag for primary key (> 0)
int offs
Byte offset for SQLGetData()
SQLULEN paramset_count
Internal for paramset.
int pdcount
SQLParamData() counter.
struct stmt * stmt
STMT list of this DBC.
int s3stmt_noreset
False when sqlite3_reset() needed.
int trans_disable
True for no transaction support.
int dcols
Number of entries in dyncols.
int naterr
Native error code.