Trying to figure out a way of getting a prepared statement to work in a threaded query, is this possible? I have a prepared statement, like:
Code:
hMsgQuery = SQL_PrepareQuery(msgDb, "INSERT INTO msg VALUES (?, ?, ?, ?)", error, sizeof(error));
I also have a connection, as so:
Code:
public void MsgInit() {
Database.Connect(MsgCallback, "msg");
}
public void MsgCallback(Database db, const char[] error, any data) {
if (db == null) {
LogError("Database failure: %s", error);
return;
}
msgDb = db;
}
I can't quite figure out how to get the former to run on the latter though.