Fixed calling the wrong GetError(), causing misleading spew (part of bug 2698).
authorDavid Anderson <dvander@alliedmods.net>
Fri Oct 17 02:04:09 2008 -0500 (2008-10-17)
changeset 2364d0625900d257
parent 2363 cdc42a38e7c1
child 2365 40430f687836
Fixed calling the wrong GetError(), causing misleading spew (part of bug 2698).
extensions/clientprefs/query.cpp
     1.1 --- a/extensions/clientprefs/query.cpp	Thu Oct 16 10:55:42 2008 +1300
     1.2 +++ b/extensions/clientprefs/query.cpp	Fri Oct 17 02:04:09 2008 -0500
     1.3 @@ -85,7 +85,11 @@
     1.4  
     1.5  		if (!BindParamsAndRun())
     1.6  		{
     1.7 -			g_pSM->LogError(myself, "Failed SQL Query, Error: \"%s\" (Query id %i - client %i)", m_database->GetError(), m_type, m_client);
     1.8 +			g_pSM->LogError(myself, 
     1.9 +							"Failed SQL Query, Error: \"%s\" (Query id %i - client %i)", 
    1.10 +							m_pQuery ? m_pQuery->GetError() : "NULL QUERY",
    1.11 +							m_type, 
    1.12 +							m_client);
    1.13  		}
    1.14  
    1.15  		m_insertId = m_database->GetInsertID();