r42433 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42432‎ | r42433 | r42434 >
Date:23:55, 23 October 2008
Author:brion
Status:old
Tags:
Comment:
wrap begin and commit around the save; otherwise it gets eaten in the ajax save if you use innodb (transaction doesn't get committed)
Modified paths:
  • /trunk/extensions/Drafts/Drafts.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Drafts/Drafts.classes.php
@@ -88,6 +88,7 @@
8989
9090 // Get db connection
9191 $this->getDB();
 92+ $this->_db->begin();
9293
9394 // Build data
9495 $data = array(
@@ -136,6 +137,8 @@
137138 }
138139 }
139140
 141+ $this->_db->commit();
 142+
140143 // Return success
141144 return true;
142145 }

Status & tagging log