[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/akonadi-sqlite/server/src/storage
From:       Bertjan Broeksema <b.broeksema () home ! nl>
Date:       2009-08-19 14:39:04
Message-ID: 1250692744.246210.30481.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1013316 by bbroeksema:

Revert the added transaction in the xsl as it leads to nested transactions.


 M  +0 -5      entities-source.xsl  


--- branches/work/akonadi-sqlite/server/src/storage/entities-source.xsl #1013315:1013316
@@ -26,8 +26,6 @@
 <xsl:variable name="tableName"><xsl:value-of select="@name"/>Table</xsl:variable>
 <xsl:variable name="entityName"><xsl:value-of select="@name"/></xsl:variable>
 
-#include "storage/transaction.h"
-
 // private class
 class <xsl:value-of select="$className"/>::Private : public QSharedData
 {
@@ -442,15 +440,12 @@
     </xsl:if>
   </xsl:for-each>
 
-  Transaction transaction( DataStore::self() );
   if ( !qb.exec() ) {
     qDebug() &lt;&lt; "Error during insertion into table" &lt;&lt; tableName()
       &lt;&lt; qb.query().lastError().text();
     return false;
   }
 
-  transaction.commit();
-
   setId( qb.insertId() );
   if ( insertId )
     *insertId = id();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic