| 68 | } |
| 69 | |
| 70 | void TQueryOp::RunThreadPart() |
| 71 | { |
| 72 | if (m_type == Query_Connect) |
| 73 | { |
| 74 | g_ClientPrefs.DatabaseConnect(); |
| 75 | return; |
| 76 | } |
| 77 | |
| 78 | assert(m_database != NULL); |
| 79 | /* I don't think this is needed anymore... keeping for now. */ |
| 80 | m_database->LockForFullAtomicOperation(); |
| 81 | if (!BindParamsAndRun()) |
| 82 | { |
| 83 | g_pSM->LogError(myself, |
| 84 | "Failed SQL Query, Error: \"%s\" (Query id %i - serial %i)", |
| 85 | m_database->GetError(), |
| 86 | m_type, |
| 87 | m_serial); |
| 88 | } |
| 89 | |
| 90 | m_database->UnlockFromFullAtomicOperation(); |
| 91 | } |
| 92 | |
| 93 | IDBDriver *TQueryOp::GetDriver() |
| 94 | { |
nothing calls this directly
no test coverage detected