From 564c28762e1428e142abc2a577b4639e350ddc08 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 2 Apr 2010 08:28:59 +0000 Subject: [PATCH] *sqlite3: fixed for linux git-svn-id: svn://ultimatepp.org/upp/trunk@2297 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/plugin/sqlite3/Sqlite3upp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uppsrc/plugin/sqlite3/Sqlite3upp.cpp b/uppsrc/plugin/sqlite3/Sqlite3upp.cpp index a20e62ac2..a52c397bc 100644 --- a/uppsrc/plugin/sqlite3/Sqlite3upp.cpp +++ b/uppsrc/plugin/sqlite3/Sqlite3upp.cpp @@ -151,7 +151,7 @@ bool Sqlite3Connection::Execute() { // Make sure that compiling the statement never fails. ASSERT(NULL != current_stmt); int retcode; - dword ticks_start = ::GetTickCount(); + dword ticks_start = GetTickCount(); int sleep_ms = 1; do{ retcode = sqlite3_step(current_stmt); @@ -163,7 +163,7 @@ bool Sqlite3Connection::Execute() { } }//else infinite retry if(retcode==SQLITE_LOCKED) sqlite3_reset(current_stmt); - ::Sleep(sleep_ms); + Sleep(sleep_ms); if(sleep_ms<128) sleep_ms += sleep_ms; }while(1); if ((retcode != SQLITE_DONE) && (retcode != SQLITE_ROW)) { @@ -345,7 +345,7 @@ int Sqlite3Session::SqlExecRetry(const char *sql) if(busy_timeout>0){ if((int)(GetTickCount()-ticks_start)>busy_timeout) break; }//else infinite retry - ::Sleep(sleep_ms); + Sleep(sleep_ms); if(sleep_ms<128) sleep_ms += sleep_ms; }while(1); return retcode;