mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
SQL-Standard
This commit is contained in:
parent
c18b9e739b
commit
499526000a
@ -34,8 +34,8 @@ public function create() {
|
||||
$room = parent::create();
|
||||
|
||||
WCF::getDB()->beginTransaction();
|
||||
$sql = "SELECT max(position) as max
|
||||
FROM wcf".WCF_N."_chat_room
|
||||
$sql = "SELECT MAX(position)
|
||||
FROM wcf".WCF_N."_chat_room
|
||||
FOR UPDATE";
|
||||
$stmt = WCF::getDB()->prepareStatement($sql);
|
||||
$stmt->execute();
|
||||
|
Loading…
Reference in New Issue
Block a user