1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-22 02:00:40 +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 @@ class ChatRoomAction extends \wcf\data\AbstractDatabaseObjectAction {
$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();