26.06.2013, 10:23
Well hello there! I've came across a problem that have been giving me headaches for quite awhile!
Basicly whenever I run this bit of code I get a mysql error saying "[10:19:01] [WARNING] cache_insert_id - no active cache"
Using the lates mysql revision.
And due to this the cache_insert_id returns 0...
There's an Auto Increment in the database and it contains all columns required.
Basicly whenever I run this bit of code I get a mysql error saying "[10:19:01] [WARNING] cache_insert_id - no active cache"
Using the lates mysql revision.
Code:
format(Query, sizeof(Query), "INSERT INTO houses (houseOwner, houseLocked) VALUES('Nobody', '1')"); mysql_tquery(databaseConnection, Query, "", ""); i = cache_insert_id();
There's an Auto Increment in the database and it contains all columns required.