05.12.2015, 10:06
Quote:
Is there any way to get a simple function which saves the results of a query directly in its parameters? This function should skip the entire callback-part like
Код:
sqlQuery("select userID from users where userName = 'Test';", "i", id, handle); |
Код:
sqlQuery(handle, const query[], &var) { new Cache:result = mysql_query(handle, query); var = cache_get_row_int(0, 0); cache_delete(result); return 1; }
Quote:
Код:
[15:19:57] [debug] Server crashed due to an unknown error [15:19:57] [debug] Native backtrace: [15:19:57] [debug] #0 00e0f50b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [15:19:57] [debug] #1 00e0820f in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [15:19:57] [debug] #2 00e093fc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [15:19:57] [debug] #3 00e09866 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [15:19:57] [debug] #4 00e0f15c in ?? () from plugins/crashdetect.so [15:19:57] [debug] #5 0013e410 in ?? () [15:19:57] [debug] #6 005be806 in ?? () from /lib/libc.so.6 [15:19:57] [debug] #7 00f55254 in _ZN11CMySQLQuery11StoreResultEP8st_mysqlP12st_mysql_res () from plugins/mysql_static.so [15:19:57] [debug] #8 00f55657 in _ZN11CMySQLQuery7ExecuteEP8st_mysql () from plugins/mysql_static.so [15:19:57] [debug] #9 00f4c9e4 in _ZN16CMySQLConnection14ProcessQueriesEv () from plugins/mysql_static.so [15:19:57] [debug] #10 00f4d2e7 in _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv16CMySQLConnectionEENS2_5list$ [15:19:57] [debug] #11 00ff65a8 in ?? () from plugins/mysql_static.so [15:19:57] [debug] #12 001c7b69 in ?? () from /lib/libpthread.so.0 [15:19:57] [debug] #13 00569cce in clone () from /lib/libc.so.6 |
Quote:
The r39-3 and r39-4 version is not compatible with the latest detect crash, this incompatibility causes the fall of the server.
EDIT: The crash occurs for the 64-bit version. " mysql_static.so " I'll let the problem here: |
Quote:
Hi, this:
mysql_log(LOG_ALL, LOG_TYPE_HTML); g_SQL = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS); Gives this: https://i.gyazo.com/2ed55a4a110d8017...f00ea3a4cb.png And it is working as a .txt file, any help please? |