Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

stmt Struct Reference

#include <sqliteodbc.h>


Detailed Description

Driver internal structure representing SQL statement (HSTMT).

Definition at line 169 of file sqliteodbc.h.

Data Fields

stmtnext
 Linkage for STMT list in DBC.
HDBC dbc
 Pointer to DBC.
SQLCHAR cursorname [32]
 Cursor name.
SQLCHAR * query
 Current query, raw string.
char ** parmnames
 Parameter names from current query.
int * ov3
 True for SQL_OV_ODBC3.
int isselect
 True if query is a SELECT statement.
int ncols
 Number of result columns.
COLcols
 Result column array.
COLdyncols
 Column array, but malloc()ed.
int dcols
 Number of entries in dyncols.
int bkmrk
 True when bookmarks used.
BINDCOL bkmrkcol
 Bookmark bound column.
BINDCOLbindcols
 Array of bound columns.
int nbindcols
 Number of entries in bindcols.
int nbindparms
 Number bound parameters.
BINDPARMbindparms
 Array of bound parameters.
int nparams
 Number of parameters in query.
int nrows
 Number of result rows.
int rowp
 Current result row.
char ** rows
 2-dim array, result set
void(* rowfree )()
 Free function for rows.
int naterr
 Native error code.
char sqlstate [6]
 SQL state for SQLError().
SQLCHAR logmsg [1024]
 Message for SQLError().
int nowchar
 Don't try to use WCHAR.
int retr_data
 SQL_ATTR_RETRIEVE_DATA.
SQLUINTEGER rowset_size
 Size of rowset.
SQLUSMALLINT * row_status
 Row status pointer.
SQLUSMALLINT * row_status0
 Internal status array.
SQLUSMALLINT row_status1
 Internal status array for 1 row rowsets.
SQLUINTEGER * row_count
 Row count pointer.
SQLUINTEGER row_count0
 Row count.
SQLUINTEGER paramset_size
 SQL_ATTR_PARAMSET_SIZE.
SQLUINTEGER paramset_count
 Internal for paramset.
SQLUINTEGER paramset_nrows
 Row count for paramset handling.
SQLUINTEGER bind_type
 SQL_ATTR_ROW_BIND_TYPE.
SQLUINTEGER * bind_offs
 SQL_ATTR_ROW_BIND_OFFSET_PTR.
SQLUINTEGER * parm_bind_offs
 SQL_ATTR_PARAM_BIND_OFFSET_PTR.
SQLUSMALLINT * parm_oper
 SQL_ATTR_PARAM_OPERATION_PTR.
SQLUSMALLINT * parm_status
 SQL_ATTR_PARAMS_STATUS_PTR.
SQLUINTEGER * parm_proc
 SQL_ATTR_PARAMS_PROCESSED_PTR.
int curtype
 Cursor type.
sqlite_vm * vm
 SQLite VM or NULL.


Field Documentation

SQLUINTEGER* stmt::bind_offs
 

SQL_ATTR_ROW_BIND_OFFSET_PTR.

Definition at line 207 of file sqliteodbc.h.

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

SQLUINTEGER stmt::bind_type
 

SQL_ATTR_ROW_BIND_TYPE.

Definition at line 206 of file sqliteodbc.h.

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

BINDCOL* stmt::bindcols
 

Array of bound columns.

Definition at line 183 of file sqliteodbc.h.

Referenced by drvfetchscroll(), and SQLBindCol().

BINDPARM* stmt::bindparms
 

Array of bound parameters.

Definition at line 186 of file sqliteodbc.h.

Referenced by drvbindparam(), drvexecute(), freestmt(), SQLParamData(), and SQLPutData().

int stmt::bkmrk
 

True when bookmarks used.

Definition at line 181 of file sqliteodbc.h.

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

BINDCOL stmt::bkmrkcol
 

Bookmark bound column.

Definition at line 182 of file sqliteodbc.h.

Referenced by dofetchbind(), and SQLBindCol().

COL* stmt::cols
 

Result column array.

Definition at line 178 of file sqliteodbc.h.

Referenced by drvcolattribute(), drvcolattributes(), drvdescribecol(), drvexecute(), mkresultset(), selcb(), and SQLBindCol().

SQLCHAR stmt::cursorname[32]
 

Cursor name.

Definition at line 172 of file sqliteodbc.h.

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

int stmt::curtype
 

Cursor type.

Definition at line 213 of file sqliteodbc.h.

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

HDBC stmt::dbc
 

Pointer to DBC.

Definition at line 171 of file sqliteodbc.h.

Referenced by drvallocstmt(), drvcolumns(), drvexecute(), drvfetchscroll(), drvforeignkeys(), drvgetstmtattr(), drvgetstmtoption(), drvgettypeinfo(), drvprepare(), drvprimarykeys(), drvspecialcolumns(), drvstatistics(), drvtables(), freestmt(), mkresultset(), selcb(), vm_end_if(), and vm_start().

int stmt::dcols
 

Number of entries in dyncols.

Definition at line 180 of file sqliteodbc.h.

Referenced by drvexecute(), and selcb().

COL* stmt::dyncols
 

Column array, but malloc()ed.

Definition at line 179 of file sqliteodbc.h.

Referenced by drvexecute(), and selcb().

int stmt::isselect
 

True if query is a SELECT statement.

Definition at line 176 of file sqliteodbc.h.

Referenced by drvexecute(), and drvprepare().

SQLCHAR stmt::logmsg[1024]
 

Message for SQLError().

Definition at line 194 of file sqliteodbc.h.

Referenced by drverror(), and drvgetdiagrec().

int stmt::naterr
 

Native error code.

Definition at line 192 of file sqliteodbc.h.

Referenced by drverror(), and drvgetdiagrec().

int stmt::nbindcols
 

Number of entries in bindcols.

Definition at line 184 of file sqliteodbc.h.

int stmt::nbindparms
 

Number bound parameters.

Definition at line 185 of file sqliteodbc.h.

Referenced by drvbindparam(), and drvexecute().

int stmt::ncols
 

Number of result columns.

Definition at line 177 of file sqliteodbc.h.

Referenced by drvcolattribute(), drvcolattributes(), drvdescribecol(), drvexecute(), drvforeignkeys(), drvprepare(), drvprimarykeys(), drvspecialcolumns(), drvstatistics(), drvtables(), mkresultset(), selcb(), SQLGetData(), and SQLNumResultCols().

struct stmt* stmt::next
 

Linkage for STMT list in DBC.

Definition at line 170 of file sqliteodbc.h.

Referenced by drvallocstmt(), and freestmt().

int stmt::nowchar
 

Don't try to use WCHAR.

Definition at line 195 of file sqliteodbc.h.

Referenced by drvallocstmt(), drvcolattribute(), drvcolattributes(), drvcolumns(), drvdescribecol(), drvgettypeinfo(), drvspecialcolumns(), SQLBindCol(), SQLDescribeParam(), and SQLPutData().

int stmt::nparams
 

Number of parameters in query.

Definition at line 187 of file sqliteodbc.h.

Referenced by drvexecute(), drvprepare(), SQLDescribeParam(), SQLNumParams(), and SQLPutData().

int stmt::nrows
 

Number of result rows.

Definition at line 188 of file sqliteodbc.h.

Referenced by drvcolumns(), drvexecute(), drvfetchscroll(), drvforeignkeys(), drvgettypeinfo(), drvprimarykeys(), drvspecialcolumns(), drvstatistics(), drvtables(), mkresultset(), SQLRowCount(), and vm_step().

int* stmt::ov3
 

True for SQL_OV_ODBC3.

Definition at line 175 of file sqliteodbc.h.

Referenced by drvallocstmt(), drvbindparam(), drvcolattribute(), drvcolattributes(), drvcolumns(), drvdescribecol(), drvexecute(), drvforeignkeys(), drvfreestmt(), drvgettypeinfo(), drvprepare(), drvprimarykeys(), drvsetcursorname(), drvspecialcolumns(), drvstatistics(), SQLBindCol(), SQLDescribeParam(), and SQLGetData().

SQLUINTEGER stmt::paramset_count
 

Internal for paramset.

Definition at line 204 of file sqliteodbc.h.

Referenced by drvexecute(), drvprepare(), and drvsetstmtattr().

SQLUINTEGER stmt::paramset_nrows
 

Row count for paramset handling.

Definition at line 205 of file sqliteodbc.h.

Referenced by drvexecute().

SQLUINTEGER stmt::paramset_size
 

SQL_ATTR_PARAMSET_SIZE.

Definition at line 203 of file sqliteodbc.h.

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

SQLUINTEGER* stmt::parm_bind_offs
 

SQL_ATTR_PARAM_BIND_OFFSET_PTR.

Definition at line 209 of file sqliteodbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

SQLUSMALLINT* stmt::parm_oper
 

SQL_ATTR_PARAM_OPERATION_PTR.

Definition at line 210 of file sqliteodbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

SQLUINTEGER* stmt::parm_proc
 

SQL_ATTR_PARAMS_PROCESSED_PTR.

Definition at line 212 of file sqliteodbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

SQLUSMALLINT* stmt::parm_status
 

SQL_ATTR_PARAMS_STATUS_PTR.

Definition at line 211 of file sqliteodbc.h.

Referenced by drvgetstmtattr(), and drvsetstmtattr().

char** stmt::parmnames
 

Parameter names from current query.

Definition at line 174 of file sqliteodbc.h.

Referenced by drvprepare().

SQLCHAR* stmt::query
 

Current query, raw string.

Definition at line 173 of file sqliteodbc.h.

Referenced by drvexecute(), drvprepare(), freestmt(), and SQLPutData().

int stmt::retr_data
 

SQL_ATTR_RETRIEVE_DATA.

Definition at line 196 of file sqliteodbc.h.

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

SQLUINTEGER* stmt::row_count
 

Row count pointer.

Definition at line 201 of file sqliteodbc.h.

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

SQLUINTEGER stmt::row_count0
 

Row count.

Definition at line 202 of file sqliteodbc.h.

Referenced by drvfetchscroll(), and SQLExtendedFetch().

SQLUSMALLINT* stmt::row_status
 

Row status pointer.

Definition at line 198 of file sqliteodbc.h.

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

SQLUSMALLINT* stmt::row_status0
 

Internal status array.

Definition at line 199 of file sqliteodbc.h.

Referenced by dofetchbind(), drvallocstmt(), drvfetchscroll(), drvsetstmtattr(), drvsetstmtoption(), freestmt(), and SQLExtendedFetch().

SQLUSMALLINT stmt::row_status1
 

Internal status array for 1 row rowsets.

Definition at line 200 of file sqliteodbc.h.

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

void(* stmt::rowfree)()
 

Free function for rows.

Referenced by drvcolumns(), drvexecute(), drvforeignkeys(), drvgettypeinfo(), drvprimarykeys(), drvspecialcolumns(), drvstatistics(), and drvtables().

int stmt::rowp
 

Current result row.

Definition at line 189 of file sqliteodbc.h.

Referenced by drvexecute(), drvfetchscroll(), drvgetstmtattr(), drvgetstmtoption(), drvtables(), mkresultset(), and SQLGetData().

char** stmt::rows
 

2-dim array, result set

Definition at line 190 of file sqliteodbc.h.

Referenced by drvcolumns(), drvexecute(), drvfetchscroll(), drvforeignkeys(), drvgettypeinfo(), drvprimarykeys(), drvspecialcolumns(), drvstatistics(), drvtables(), and vm_step().

SQLUINTEGER stmt::rowset_size
 

Size of rowset.

Definition at line 197 of file sqliteodbc.h.

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

char stmt::sqlstate[6]
 

SQL state for SQLError().

Definition at line 193 of file sqliteodbc.h.

Referenced by drverror(), and drvgetdiagrec().

sqlite_vm* stmt::vm
 

SQLite VM or NULL.

Definition at line 214 of file sqliteodbc.h.

Referenced by drvfetchscroll(), vm_start(), and vm_step().


The documentation for this struct was generated from the following file:
Generated on 25 Feb 2005 by doxygen.
Contact: chw@ch-werner.de