mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Adding For Update to query
This commit is contained in:
parent
d7548e19e3
commit
b103dff5f9
@ -35,7 +35,8 @@ public function create() {
|
||||
|
||||
WCF::getDB()->beginTransaction();
|
||||
$sql = "SELECT max(position) as max
|
||||
FROM wcf".WCF_N."_chat_room";
|
||||
FROM wcf".WCF_N."_chat_room
|
||||
FOR UPDATE";
|
||||
$stmt = WCF::getDB()->prepareStatement($sql);
|
||||
$stmt->execute();
|
||||
$row = $stmt->fetchArray();
|
||||
|
Loading…
Reference in New Issue
Block a user