1
0
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:
Tim Düsterhus 2012-03-22 16:38:08 +01:00
parent c18b9e739b
commit 499526000a

View File

@ -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();