Improve default compatibilty for ClientPrefs with MySQL
Some checks failed
Continuous Integration / ${{ matrix.os_short }}-${{ matrix.compiler_cc }} (clang, clang++, ubuntu-latest, linux) (push) Has been cancelled
Continuous Integration / ${{ matrix.os_short }}-${{ matrix.compiler_cc }} (clang-14, clang++-14, ubuntu-22.04, linux) (push) Has been cancelled
Continuous Integration / ${{ matrix.os_short }}-${{ matrix.compiler_cc }} (msvc, windows-latest, win) (push) Has been cancelled
hl2sdk-mock tests / mock (push) Has been cancelled

This commit is contained in:
Nicholas Hastings 2025-05-26 13:29:12 -04:00
parent 6d13a70b99
commit 7e784d5453

View File

@ -162,7 +162,7 @@ bool TQueryOp::BindParamsAndRun()
g_pSM->Format(query,
sizeof(query),
"INSERT IGNORE INTO sm_cookies (name, description, access) \
VALUES (\"%s\", \"%s\", %d)",
VALUES ('%s', '%s', %d)",
safe_name,
safe_desc,
m_params.cookie->access);
@ -239,9 +239,9 @@ bool TQueryOp::BindParamsAndRun()
g_pSM->Format(query,
sizeof(query),
"INSERT INTO sm_cookie_cache (player, cookie_id, value, timestamp) \
VALUES (\"%s\", %d, \"%s\", %d) \
VALUES ('%s', %d, '%s', %d) \
ON DUPLICATE KEY UPDATE \
value = \"%s\", timestamp = %d",
value = '%s', timestamp = %d",
safe_id,
m_params.cookieId,
safe_val,