Data Fields
stmt Struct Reference

Driver internal structure representing SQL statement (HSTMT). More...

#include <sqlite3odbc.h>

Data Fields

struct stmtnext
 Linkage for STMT list in DBC. More...
 
HDBC dbc
 Pointer to DBC. More...
 
SQLCHAR cursorname [32]
 Cursor name. More...
 
SQLCHAR * query
 Current query, raw string. More...
 
int * ov3
 True for SQL_OV_ODBC3. More...
 
int * oemcp
 True for Win32 OEM CP translation. More...
 
int * jdconv
 True for julian day conversion. More...
 
int isselect
 

0 if query is a SELECT statement

More...
 
int ncols
 Number of result columns. More...
 
COLcols
 Result column array. More...
 
COLdyncols
 Column array, but malloc()ed. More...
 
int dcols
 Number of entries in dyncols. More...
 
int bkmrk
 True when bookmarks used. More...
 
SQLINTEGER * bkmrkptr
 SQL_ATTR_FETCH_BOOKMARK_PTR. More...
 
BINDCOL bkmrkcol
 Bookmark bound column. More...
 
BINDCOLbindcols
 Array of bound columns. More...
 
int nbindcols
 Number of entries in bindcols. More...
 
int nbindparms
 Number bound parameters. More...
 
BINDPARMbindparms
 Array of bound parameters. More...
 
int nparams
 Number of parameters in query. More...
 
int pdcount
 SQLParamData() counter. More...
 
int nrows
 Number of result rows. More...
 
int rowp
 Current result row. More...
 
int rowprs
 Current start row of rowset. More...
 
char ** rows
 2-dim array, result set More...
 
void(* rowfree )()
 Free function for rows. More...
 
int naterr
 Native error code. More...
 
char sqlstate [6]
 SQL state for SQLError() More...
 
SQLCHAR logmsg [1024]
 Message for SQLError() More...
 
int nowchar [2]
 Don't try to use WCHAR. More...
 
int dobigint
 Force SQL_BIGINT for INTEGER columns. More...
 
int longnames
 Don't shorten column names. More...
 
SQLULEN retr_data
 SQL_ATTR_RETRIEVE_DATA. More...
 
SQLULEN rowset_size
 Size of rowset. More...
 
SQLUSMALLINT * row_status
 Row status pointer. More...
 
SQLUSMALLINT * row_status0
 Internal status array. More...
 
SQLUSMALLINT row_status1
 Internal status array for 1 row rowsets. More...
 
SQLULENrow_count
 Row count pointer. More...
 
SQLULEN row_count0
 Row count. More...
 
SQLULEN paramset_size
 SQL_ATTR_PARAMSET_SIZE. More...
 
SQLULEN paramset_count
 Internal for paramset. More...
 
SQLUINTEGER paramset_nrows
 Row count for paramset handling. More...
 
SQLULEN max_rows
 SQL_ATTR_MAX_ROWS. More...
 
SQLULEN bind_type
 SQL_ATTR_ROW_BIND_TYPE. More...
 
SQLULENbind_offs
 SQL_ATTR_ROW_BIND_OFFSET_PTR. More...
 
SQLULENparm_bind_offs
 SQL_ATTR_PARAM_BIND_OFFSET_PTR. More...
 
SQLUSMALLINT * parm_oper
 SQL_ATTR_PARAM_OPERATION_PTR. More...
 
SQLUSMALLINT * parm_status
 SQL_ATTR_PARAMS_STATUS_PTR. More...
 
SQLULENparm_proc
 SQL_ATTR_PARAMS_PROCESSED_PTR. More...
 
SQLULEN parm_bind_type
 SQL_ATTR_PARAM_BIND_TYPE. More...
 
int curtype
 Cursor type. More...
 
sqlite3_stmt * s3stmt
 SQLite statement handle or NULL. More...
 
int s3stmt_noreset
 False when sqlite3_reset() needed. More...
 
int s3stmt_rownum
 Current row number. More...
 
char * bincell
 Cache for blob data. More...
 
char * bincache
 Cache for blob data. More...
 
int binlen
 Length of blob data. More...
 
int guessed_types
 Flag for drvprepare()/drvexecute() More...
 
int one_tbl
 Flag for single table (> 0) More...
 
int has_pk
 Flag for primary key (> 0) More...
 
int has_rowid
 Flag for ROWID (>= 0 or -1) More...
 

Detailed Description

Driver internal structure representing SQL statement (HSTMT).

Definition at line 230 of file sqlite3odbc.h.

Field Documentation

char* stmt::bincache

Cache for blob data.

Definition at line 287 of file sqlite3odbc.h.

Referenced by freeresult(), and getrowdata().

char* stmt::bincell

Cache for blob data.

Definition at line 286 of file sqlite3odbc.h.

Referenced by freeresult(), and getrowdata().

SQLULEN* stmt::bind_offs

SQL_ATTR_ROW_BIND_OFFSET_PTR.

Definition at line 275 of file sqlite3odbc.h.

Referenced by dofetchbind(), drvallocstmt(), drvbulkoperations(), drvgetstmtattr(), drvsetstmtattr(), setposbind(), and setposrefr().

SQLULEN stmt::bind_type

SQL_ATTR_ROW_BIND_TYPE.

Definition at line 274 of file sqlite3odbc.h.

Referenced by dofetchbind(), drvallocstmt(), drvbulkoperations(), drvgetstmtattr(), drvsetstmtattr(), setposbind(), and setposrefr().

BINDCOL* stmt::bindcols
BINDPARM* stmt::bindparms

Array of bound parameters.

Definition at line 249 of file sqlite3odbc.h.

Referenced by drvbindparam(), drvputdata(), freeparams(), freestmt(), s3stmt_start(), setupparam(), and SQLParamData().

int stmt::binlen

Length of blob data.

Definition at line 288 of file sqlite3odbc.h.

Referenced by freeresult(), and getrowdata().

int stmt::bkmrk

True when bookmarks used.

Definition at line 243 of file sqlite3odbc.h.

Referenced by dofetchbind(), drvallocstmt(), drvbindcol(), drvbulkoperations(), drvfetchscroll(), drvgetstmtattr(), drvsetstmtattr(), and SQLGetData().

BINDCOL stmt::bkmrkcol

Bookmark bound column.

Definition at line 245 of file sqlite3odbc.h.

Referenced by dofetchbind(), drvbindcol(), and drvbulkoperations().

SQLINTEGER* stmt::bkmrkptr

SQL_ATTR_FETCH_BOOKMARK_PTR.

Definition at line 244 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvfetchscroll(), drvgetstmtattr(), drvsetstmtattr(), and SQLExtendedFetch().

COL* stmt::cols
SQLCHAR stmt::cursorname[32]

Cursor name.

Definition at line 233 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvgetcursorname(), and drvsetcursorname().

int stmt::curtype
HDBC stmt::dbc
int stmt::dcols

Number of entries in dyncols.

Definition at line 242 of file sqlite3odbc.h.

Referenced by fixupdyncols(), freedyncols(), and s3stmt_step().

int stmt::dobigint

Force SQL_BIGINT for INTEGER columns.

Definition at line 261 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvcolumns(), drvspecialcolumns(), and fixupdyncols().

COL* stmt::dyncols

Column array, but malloc()ed.

Definition at line 241 of file sqlite3odbc.h.

Referenced by drvbulkoperations(), drvsetpos(), fixupdyncols(), freedyncols(), and s3stmt_step().

int stmt::guessed_types

Flag for drvprepare()/drvexecute()

Definition at line 289 of file sqlite3odbc.h.

Referenced by drvgettable_row().

int stmt::has_pk

Flag for primary key (> 0)

Definition at line 291 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvsetpos(), fixupdyncols(), and freeresult().

int stmt::has_rowid

Flag for ROWID (>= 0 or -1)

Definition at line 292 of file sqlite3odbc.h.

Referenced by dofetchbind(), drvallocstmt(), drvbulkoperations(), drvfetchscroll(), fixupdyncols(), freeresult(), and SQLGetData().

int stmt::isselect

0 if query is a SELECT statement

Definition at line 238 of file sqlite3odbc.h.

Referenced by drvbulkoperations(), drvfetchscroll(), drvgetdiagfield(), drvsetpos(), mkresultset(), and SQLRowCount().

int* stmt::jdconv

True for julian day conversion.

Definition at line 237 of file sqlite3odbc.h.

Referenced by drvallocstmt(), getrowdata(), setposbind(), and setupparam().

SQLCHAR stmt::logmsg[1024]

Message for SQLError()

Definition at line 259 of file sqlite3odbc.h.

Referenced by drvgetdiagfield(), drvgetdiagrec(), and setstat().

int stmt::longnames

Don't shorten column names.

Definition at line 262 of file sqlite3odbc.h.

Referenced by drvallocstmt(), fixupdyncols(), and s3stmt_step().

SQLULEN stmt::max_rows
int stmt::naterr

Native error code.

Definition at line 257 of file sqlite3odbc.h.

Referenced by drvgetdiagfield(), drvgetdiagrec(), and setstat().

int stmt::nbindcols

Number of entries in bindcols.

Definition at line 247 of file sqlite3odbc.h.

Referenced by chkunbound(), freeresult(), mkbindcols(), and unbindcols().

int stmt::nbindparms

Number bound parameters.

Definition at line 248 of file sqlite3odbc.h.

Referenced by drvbindparam(), freeparams(), and setupparam().

int stmt::ncols
struct stmt* stmt::next

Linkage for STMT list in DBC.

Definition at line 231 of file sqlite3odbc.h.

Referenced by drvallocstmt(), and freestmt().

int stmt::nowchar[2]
int stmt::nparams

Number of parameters in query.

Definition at line 250 of file sqlite3odbc.h.

Referenced by drvputdata(), s3stmt_start(), SQLDescribeParam(), SQLNumParams(), and SQLParamData().

int stmt::nrows
int* stmt::oemcp

True for Win32 OEM CP translation.

Definition at line 236 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvputdata(), getrowdata(), setposbind(), and setupparam().

int stmt::one_tbl

Flag for single table (> 0)

Definition at line 290 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvbulkoperations(), drvsetpos(), fixupdyncols(), and freeresult().

int* stmt::ov3
SQLULEN stmt::paramset_count

Internal for paramset.

Definition at line 271 of file sqlite3odbc.h.

Referenced by drvsetstmtattr().

SQLUINTEGER stmt::paramset_nrows

Row count for paramset handling.

Definition at line 272 of file sqlite3odbc.h.

SQLULEN stmt::paramset_size

SQL_ATTR_PARAMSET_SIZE.

Definition at line 270 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvgetstmtattr(), and drvsetstmtattr().

SQLULEN* stmt::parm_bind_offs

SQL_ATTR_PARAM_BIND_OFFSET_PTR.

Definition at line 277 of file sqlite3odbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

SQLULEN stmt::parm_bind_type

SQL_ATTR_PARAM_BIND_TYPE.

Definition at line 281 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvgetstmtattr(), and drvsetstmtattr().

SQLUSMALLINT* stmt::parm_oper

SQL_ATTR_PARAM_OPERATION_PTR.

Definition at line 278 of file sqlite3odbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

SQLULEN* stmt::parm_proc

SQL_ATTR_PARAMS_PROCESSED_PTR.

Definition at line 280 of file sqlite3odbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

SQLUSMALLINT* stmt::parm_status

SQL_ATTR_PARAMS_STATUS_PTR.

Definition at line 279 of file sqlite3odbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

int stmt::pdcount

SQLParamData() counter.

Definition at line 251 of file sqlite3odbc.h.

Referenced by drvputdata(), and SQLParamData().

SQLCHAR* stmt::query

Current query, raw string.

Definition at line 234 of file sqlite3odbc.h.

Referenced by drvputdata(), freestmt(), and s3stmt_start().

SQLULEN stmt::retr_data

SQL_ATTR_RETRIEVE_DATA.

Definition at line 263 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvgetstmtattr(), drvgetstmtoption(), drvsetstmtattr(), drvsetstmtoption(), and getrowdata().

SQLULEN* stmt::row_count

Row count pointer.

Definition at line 268 of file sqlite3odbc.h.

Referenced by drvfetchscroll(), drvgetstmtattr(), and drvsetstmtattr().

SQLULEN stmt::row_count0

Row count.

Definition at line 269 of file sqlite3odbc.h.

Referenced by drvfetchscroll(), and SQLExtendedFetch().

SQLUSMALLINT* stmt::row_status

Row status pointer.

Definition at line 265 of file sqlite3odbc.h.

Referenced by drvbulkoperations(), drvfetchscroll(), drvgetstmtattr(), drvsetpos(), drvsetstmtattr(), and SQLExtendedFetch().

SQLUSMALLINT* stmt::row_status0
SQLUSMALLINT stmt::row_status1

Internal status array for 1 row rowsets.

Definition at line 267 of file sqlite3odbc.h.

Referenced by drvallocstmt(), drvsetstmtattr(), drvsetstmtoption(), and freestmt().

void(* stmt::rowfree)()
int stmt::rowp
int stmt::rowprs

Current start row of rowset.

Definition at line 254 of file sqlite3odbc.h.

Referenced by drvfetchscroll(), drvtableprivileges(), drvtables(), mkresultset(), setposibind(), and setposrefr().

char** stmt::rows
SQLULEN stmt::rowset_size
sqlite3_stmt* stmt::s3stmt

SQLite statement handle or NULL.

Definition at line 283 of file sqlite3odbc.h.

Referenced by drvfetchscroll(), drvgetstmtattr(), drvgetstmtoption(), drvgettable(), s3stmt_drop(), s3stmt_end(), s3stmt_start(), and s3stmt_step().

int stmt::s3stmt_noreset

False when sqlite3_reset() needed.

Definition at line 284 of file sqlite3odbc.h.

Referenced by drvgettable(), s3stmt_end(), s3stmt_start(), and s3stmt_step().

int stmt::s3stmt_rownum

Current row number.

Definition at line 285 of file sqlite3odbc.h.

Referenced by drvfetchscroll(), drvgetstmtattr(), drvgetstmtoption(), s3stmt_drop(), s3stmt_end(), s3stmt_start(), and s3stmt_step().

char stmt::sqlstate[6]

SQL state for SQLError()

Definition at line 258 of file sqlite3odbc.h.

Referenced by drvgetdiagfield(), drvgetdiagrec(), and setstat().


The documentation for this struct was generated from the following file:

Generated on Thu May 12 2016 by doxygen.
Contact: chw@ch-werner.de