mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix bug in sql statement
This commit is contained in:
parent
54d268b718
commit
b8a431cf01
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ DBMgr::AddNew( const char* cookie, const char* connName, CookieID cid,
|
|||
|
||||
const char* fmt = "INSERT INTO " TABLE_NAME
|
||||
"(cid, cookie, connName, nTotal, nHere, lang, ispublic, ctime) "
|
||||
"VALUES( %d, '%s', '%s', %d, %d, %d, 'now' )";
|
||||
"VALUES( %d, '%s', '%s', %d, %d, %d, %s, 'now' )";
|
||||
char buf[256];
|
||||
snprintf( buf, sizeof(buf), fmt, cid/*m_nextCID++*/, cookie, connName,
|
||||
nPlayersT, 0, langCode, isPublic?"TRUE":"FALSE" );
|
||||
|
|
Loading…
Reference in a new issue