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,7 +34,7 @@ public function create() {
$room = parent::create(); $room = parent::create();
WCF::getDB()->beginTransaction(); WCF::getDB()->beginTransaction();
$sql = "SELECT max(position) as max $sql = "SELECT MAX(position)
FROM wcf".WCF_N."_chat_room FROM wcf".WCF_N."_chat_room
FOR UPDATE"; FOR UPDATE";
$stmt = WCF::getDB()->prepareStatement($sql); $stmt = WCF::getDB()->prepareStatement($sql);