3 #if wxUSE_DATABASE_MYSQL 8 m_pInterface = pInterface;
15 m_pInterface = pInterface;
16 AddPreparedStatement(pStatement);
30 MysqlStatementWrapperArray::iterator start =
m_Statements.begin();
31 MysqlStatementWrapperArray::iterator stop =
m_Statements.end();
48 if (pStatementWrapper)
95 m_Statements[nIndex]->SetParam(nPosition, pData, nDataLength);
119 MysqlStatementWrapperArray::iterator start =
m_Statements.begin();
120 MysqlStatementWrapperArray::iterator stop =
m_Statements.end();
123 while (start != stop)
133 MysqlStatementWrapperArray::iterator start =
m_Statements.begin();
134 MysqlStatementWrapperArray::iterator stop =
m_Statements.end();
137 while (start != stop)
194 int nParametersInThisStatement =
m_Statements[i]->GetParameterCount();
196 if (*pPosition > nParametersInThisStatement)
198 *pPosition -= nParametersInThisStatement;
209 #endif//wxUSE_DATABASE_MYSQL
virtual int GetParameterCount()
virtual void SetParamString(int nPosition, const wxString &strValue)
Set the parameter at the 1-based position to a wxString value.
virtual void SetParamNull(int nPosition)
Set the parameter at the 1-based position to a NULL value.
wxDatabaseResultSet * RunQueryWithResults()
virtual void SetParamDate(int nPosition, const wxDateTime &dateValue)
Set the parameter at the 1-based position to a wxDateTime value.
virtual int RunQuery()
Run an insert, update, or delete query on the database.
void ThrowDatabaseException()
const wxString & GetErrorMessage()
virtual void Close()
Close the result set (call wxDatabase::ClosePreparedStatement() instead on the statement)
virtual ~wxMysqlPreparedStatement()
void SetErrorMessage(const wxString &strErrorMessage)
void LogResultSetForCleanup(wxDatabaseResultSet *pResultSet)
Add result set object pointer to the list for "garbage collection".
virtual void SetParamBool(int nPosition, bool bValue)
Set the parameter at the 1-based position to a boolean value.
wxMysqlDynamicInterface * m_pInterface
void SetEncoding(wxFontEncoding encoding)
#define wxDATABASE_QUERY_RESULT_ERROR
virtual void SetParamInt(int nPosition, int nValue)
Set the parameter at the 1-based position to an int value.
void AddPreparedStatement(MYSQL_STMT *pStatement)
int FindStatementAndAdjustPositionIndex(int *pPosition)
void CloseResultSets()
Close all result set objects that have been generated but not yet closed.
void SetErrorCode(int nErrorCode)
const wxCSConv * GetEncoding()
MysqlStatementWrapperArray m_Statements
virtual void SetParamBlob(int nPosition, const void *pData, long nDataLength)
Set the parameter at the 1-based position to a Blob value.
wxMysqlPreparedStatement(wxMysqlDynamicInterface *pInterface)
virtual wxDatabaseResultSet * RunQueryWithResults()
Run an insert, update, or delete query on the database.
virtual void SetParamDouble(int nPosition, double dblValue)
Set the parameter at the 1-based position to a double value.