89 fBatches =
new TList();
92 fImp =
new MySQLStatementPrivate();
104 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
129 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
148 if( imp->fMaxRows && imp->fMaxRows != (Ulong_t)~0
L ) {
149 if( !imp->fQuery.Contains(
"LIMIT",TString::kIgnoreCase) ) {
150 Int_t
pos = imp->fQuery.Index(
"select",0,TString::kIgnoreCase);
151 imp->fQuery.Insert(pos+6,Form(
" limit %lu",imp->fMaxRows));
162 if( imp->fCursorType == kCURSOR_FORWARD_ONLY &&
163 !(con->
fMYSQL->flag & FLAG_SAFE))
173 if( !mysql_field_count(con->
fMYSQL) ) {
174 stmt->state = ST_EXECUTED;
175 stmt->affected_rows = mysql_affected_rows(con->
fMYSQL);
186 imp->fLastInsertId = fCurrenResult->GetUpdateID();
219 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
237 if( imp->fMaxRows && imp->fMaxRows != (Ulong_t)~0
L ) {
238 if( !imp->fQuery.Contains(
"LIMIT",TString::kIgnoreCase) ) {
239 Int_t
pos = imp->fQuery.Index(
"select",0,TString::kIgnoreCase);
240 imp->fQuery.Insert(pos+6,Form(
" limit %lu",imp->fMaxRows));
251 if( imp->fCursorType == kCURSOR_FORWARD_ONLY &&
252 !(con->
fMYSQL->flag & FLAG_SAFE))
262 if( !mysql_field_count(con->
fMYSQL) ) {
263 stmt->state = ST_EXECUTED;
264 stmt->affected_rows = mysql_affected_rows(con->
fMYSQL);
275 imp->fLastInsertId = fCurrenResult->GetUpdateID();
372 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
373 reutrn imp->fMaxFieldSize;
392 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
394 if( max > MysqlIO.MAXBUF )
395 throw new java.sql.SQLException(
"Attempt to set max field size > " + MysqlIO.MAXBUF +
" (compile time default)",
"S1009");
397 imp->fMaxFieldSize = max;
412 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
413 return imp->fMaxRows <=0 ? 0 : imp->fMaxRows;
428 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
430 if (max > MysqlDefs.MAX_ROWS) {
431 throw new java.sql.SQLException(
"setMaxRows() out of range. " + max +
" > " + MysqlDefs.MAX_ROWS +
".",
"S1009");
446 _Conn.maxRowsChanged();
466 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
467 imp->fEscapeProcessing = enable;
487 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
488 return imp->fEscapeProcessing;
504 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
505 return imp->fQueryTimeout;
521 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
522 imp->fQueryTimeout = 0;
615 Int_t return_value = 0;
651 Int_t return_value = 0;
680 MySQLStatementPrivate* imp = (MySQLStatementPrivate*)
fImp;
681 return imp->fCursorType;