m_queueMutex.Lock();
m_commandQueue.Append( new dbgPgThreadCommand( command, caller, eventType, params ));
- wxLogDebug( _( "Queueing: %s" ), command.c_str());
+ wxLogDebug( wxT( "Queueing: %s" ), command.c_str());
m_queueMutex.Unlock();
void dbgPgThread::Die()
{
- wxLogDebug( _( "Telling the query thread to die..." ));
+ wxLogDebug( wxT( "Telling the query thread to die..." ));
die = true;
m_queueCounter.Post();
void * dbgPgThread::Entry( void )
{
- wxLogDebug( _( "worker thread waiting for some work to do..." ));
+ wxLogDebug( wxT( "worker thread waiting for some work to do..." ));
// This thread should hang at the call to m_condition.Wait()
// When m_condition is signaled, we wake up, send a command
m_currentCommand = getNextCommand();
wxString command = m_currentCommand->getCommand();
- wxLogDebug( _( "Executing: %s" ), command.c_str());
+ wxLogDebug( wxT( "Executing: %s" ), command.c_str());
// This call to PQexec() will hang until we've received
// a complete result set from the server.
return this;
}
- wxLogDebug(_( "Complete: %s" ), wxString(PQresStatus(PQresultStatus(result)), *conv).c_str());
+ wxLogDebug(wxT( "Complete: %s" ), wxString(PQresStatus(PQresultStatus(result)), *conv).c_str());
// Notify the GUI thread that a result set is ready for display
m_queueMutex.Lock();
- wxLogDebug( _( "%d commands in queue" ), m_commandQueue.GetCount());
+ wxLogDebug( wxT( "%d commands in queue" ), m_commandQueue.GetCount());
ThreadCommandList::Node * node = m_commandQueue.GetFirst();
PGresult * result = (PGresult *)event.GetClientData();
- wxLogDebug( _( "OnTargetComplete() called\n" ));
+ wxLogDebug( wxT( "OnTargetComplete() called\n" ));
wxLogDebug( wxT( "%s\n" ), wxString(PQresStatus( PQresultStatus( result )), wxConvUTF8).c_str());
// If the query failed, write the error message to the status line, otherwise, copy the result set into the grid