09.02.2019, 17:53
Quote:
mysql_insert_id is deprecated. If your query is an INSERT, then you
use cache_insert_id. You don't have to worry about it. The MySQL documentation states that the native will return the last AUTO_INCREMENT value based on a per-connection basis: It is impossible for two different connections to collide with each other, as all clients will be sitting in their own unique connection to the server. |
What is the difference between
Code:
cache_insertid
Code:
mysq_insert_id
Code:
forward OnQueryInsertBaseObject(baseidx, objectid); public OnQueryInsertBaseObject(baseidx, objectid) return BaseObjectData[baseidx][objectid][oSQLId] = mysql_insert_id(MainPipeline);
which is safer to use?