Please delete this thread! I'm an idiot and forgot I asked the same thing about a year ago
here.
---------------------
Does anyone know if you if you need to lock the database for functions such as SQL_GetInsertId() and SQL_EscapeString()?
The wiki says:
Quote:
Whenever performing any of the following non-threaded operations on a database, it is absolutely necessary to enclose the entire operation with a lock:
SQL_Query() (and SQL_FetchMoreResults pairings)
SQL_FastQuery
SQL_PrepareQuery
SQL_Bind* and SQL_Execute pairings
The rule of thumb is: if your operation is going to use the database connection, it must be locked until the operation is fully completed.
|
I would like to know for sure.