Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/sybase/SybaseConnection_p.cpp
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | |||||
205 | { | 205 | { | ||
206 | if (dbuse(dbProcess, dbName.toLatin1().data()) == SUCCEED) { | 206 | if (dbuse(dbProcess, dbName.toLatin1().data()) == SUCCEED) { | ||
207 | return true; | 207 | return true; | ||
208 | } | 208 | } | ||
209 | 209 | | |||
210 | return false; | 210 | return false; | ||
211 | } | 211 | } | ||
212 | 212 | | |||
213 | bool SybaseConnectionInternal::executeSQL(const KDbEscapedString& sql) | 213 | bool SybaseConnectionInternal::executeSql(const KDbEscapedString& sql) | ||
214 | { | 214 | { | ||
215 | // remove queries in buffer if any. flush existing results if any | 215 | // remove queries in buffer if any. flush existing results if any | ||
216 | dbcancel(dbProcess); | 216 | dbcancel(dbProcess); | ||
217 | // put query in command bufffer | 217 | // put query in command bufffer | ||
218 | dbcmd(dbProcess, sql.constData()); | 218 | dbcmd(dbProcess, sql.constData()); | ||
219 | if (dbsqlexec(dbProcess) == SUCCEED) { | 219 | if (dbsqlexec(dbProcess) == SUCCEED) { | ||
220 | while (dbresults(dbProcess) != NO_MORE_RESULTS) { | 220 | while (dbresults(dbProcess) != NO_MORE_RESULTS) { | ||
221 | /* nop */ | 221 | /* nop */ | ||
Show All 27 Lines |