Index: lib/ezdbschema/classes/ezdbschemainterface.php
===================================================================
--- lib/ezdbschema/classes/ezdbschemainterface.php	(revision 22528)
+++ lib/ezdbschema/classes/ezdbschemainterface.php	(working copy)
@@ -435,6 +435,9 @@
         if ( $includeData )
         {
             $data = $this->data( $schema, false, array( 'format' => 'local' ) );
+
+            $this->DBInstance->begin();
+
             foreach ( $schema as $tableName => $table )
             {
                 // Skip the information array, this is not a table
@@ -452,11 +455,14 @@
                     if ( !$this->DBInstance->query( $sql ) )
                     {
                         eZDebug::writeError( "Failed inserting the SQL:\n$sql" );
+                        $this->DBInstance->rollback();
                         return false;
                     }
                 }
             }
 
+            $this->DBInstance->commit();
+
             // Update sequences for databases that require this
             if ( method_exists( $this->DBInstance, 'correctSequenceValues' ) )
             {
