1 #ifndef _WX_DATABASE_ODBC_PREPARED_STATEMENT_H_ 2 #define _WX_DATABASE_ODBC_PREPARED_STATEMENT_H_ 27 virtual void SetParamInt(
int nPosition,
int nValue);
29 virtual void SetParamString(
int nPosition,
const wxString& strValue);
31 virtual void SetParamBlob(
int nPosition,
const void* pData,
long nDataLength);
32 virtual void SetParamDate(
int nPosition,
const wxDateTime& dateValue);
61 #endif//_WX_DATABASE_ODBC_PREPARED_STATEMENT_H_ virtual void SetParamBool(int nPosition, bool bValue)
Set the parameter at the 1-based position to a boolean value.
virtual int RunQuery()
Run an insert, update, or delete query on the database.
wxOdbcStatementVector m_Statements
virtual wxDatabaseResultSet * RunQueryWithResults()
Run an insert, update, or delete query on the database.
wxOdbcInterface * m_pInterface
SQLHSTMT GetLastStatement()
virtual void SetParamBlob(int nPosition, const void *pData, long nDataLength)
Set the parameter at the 1-based position to a Blob value.
int FindStatementAndAdjustPositionIndex(int *pPosition)
virtual ~wxOdbcPreparedStatement()
virtual void Close()
Close the result set (call wxDatabase::ClosePreparedStatement() instead on the statement)
void AddPreparedStatement(SQLHSTMT pStatement)
WX_DEFINE_ARRAY_PTR(SQLHSTMT, wxOdbcStatementVector)
void SetOneTimer(bool bOneTimer=true)
virtual void SetParamInt(int nPosition, int nValue)
Set the parameter at the 1-based position to an int value.
virtual void SetParamString(int nPosition, const wxString &strValue)
Set the parameter at the 1-based position to a wxString value.
wxOdbcPreparedStatement(wxOdbcInterface *pInterface, SQLHENV sqlEnvHandle, SQLHDBC sqlHDBC)
virtual void SetParamNull(int nPosition)
Set the parameter at the 1-based position to a NULL value.
virtual void SetParamDate(int nPosition, const wxDateTime &dateValue)
Set the parameter at the 1-based position to a wxDateTime value.
void SetParam(int nPosition, wxOdbcParameter *pParameter)
void InterpretErrorCodes(long nCode, SQLHSTMT stmth_ptr=NULL)
virtual void SetParamDouble(int nPosition, double dblValue)
Set the parameter at the 1-based position to a double value.
ArrayOfOdbcParameters m_Parameters
virtual int GetParameterCount()