From: Jess Robinson <castaway@desert-island.me.uk>
Date: Wed, 9 May 2007 22:42:11 +0000 (+0000)
Subject: No nested transactions in SQLite.
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7aa11122fdcda9a93b930bdeb2d2120b4c58297c;p=dbsrgits%2FDBIx-Class-Historic.git

No nested transactions in SQLite.
---

diff --git a/lib/DBIx/Class/Storage/DBI/SQLite.pm b/lib/DBIx/Class/Storage/DBI/SQLite.pm
index 02a3c51..a714510 100644
--- a/lib/DBIx/Class/Storage/DBI/SQLite.pm
+++ b/lib/DBIx/Class/Storage/DBI/SQLite.pm
@@ -45,6 +45,15 @@ sub backup
   return $backupfile;
 }
 
+sub txn_begin
+{
+  my $self = shift;
+  return if(!$self->{transaction_depth});
+
+  $self->next::method(@_);
+}
+
+
 1;
 
 =head1 NAME