MCPcopy Create free account
hub / github.com/Segs/Segs / prepQuery

Function prepQuery

Projects/CoX/Servers/GameDatabase/GameDBSyncContext.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace
37{
38 bool prepQuery(QSqlQuery &qr,const QString &txt)
39 {
40 if(!qr.prepare(txt))
41 {
42 qDebug() << "SQL_ERROR:" << qr.lastError();
43 qDebug() << "QUERY:" << qr.executedQuery();
44 return false;
45 }
46 return true;
47 }
48 bool doIt(QSqlQuery &qr)
49 {
50 if(!qr.exec())

Callers 1

loadAndConfigureMethod · 0.85

Calls 1

prepareMethod · 0.45

Tested by

no test coverage detected