kexi
mysqlpreparedstatement.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MYSQLPREPAREDSTATEMENT_H
00021 #define MYSQLPREPAREDSTATEMENT_H
00022
00023 #include <kexidb/preparedstatement.h>
00024 #include "mysqlconnection_p.h"
00025
00026
00027
00028
00029 namespace KexiDB
00030 {
00031
00033 class MySqlPreparedStatement : public PreparedStatement, public MySqlConnectionInternal
00034 {
00035 public:
00036 MySqlPreparedStatement(StatementType type, ConnectionInternal& conn, FieldList& fields);
00037
00038 virtual ~MySqlPreparedStatement();
00039
00040 virtual bool execute();
00041
00042 QCString m_tempStatementString;
00043
00044 #ifdef KEXI_USE_MYSQL_STMT
00045 int m_realParamCount;
00046 MYSQL_STMT *m_statement;
00047 MYSQL_BIND *m_mysqlBind;
00048 #endif
00049 bool m_resetRequired : 1;
00050
00051 protected:
00052 bool init();
00053 void done();
00054 };
00055 }
00056 #endif
|