Thread
:
SQL: Very confused!
View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
07-28-2020 , 11:27 Re: SQL: Very confused!
#
10
Quote:
Originally Posted by
generalmemer
Just bumped here and since he didn't mind to let us all know his solution 12 years ago, it's that you have to call SQL_GetInsertId() in the query callback using the main database connection handle and take it from there. Because the query doesn't execute instantly, we have to wait for the callback. Otherwise it'll return 0. Nothing is wrong with the function.
This 12 year old thread far predates threaded SQL support - there was no callback involved in the original code.
__________________
Spider - A Replacement Webcompiler
Accelerator - Crash Reporting That Doesn't Suck
VTable.js - In-browser Virtual Function Table Dumper
TF2Items
|
SteamTools
|
VPhysics
|
RocketBounce
|
Free2BeKicked
|
Connect
|
Webcon & Conplex
asherkin
View Public Profile
Send a private message to asherkin
Visit asherkin's homepage!
Find More Posts by asherkin