--- a/lib/Data/ObjectDriver/Driver/DBD/SQLite.pm	2010-03-22 20:41:59.000000000 +0000
+++ b/lib/Data/ObjectDriver/Driver/DBD/SQLite.pm	2014-03-20 11:53:58.712497312 +0000
@@ -30,7 +30,7 @@
 sub map_error_code {
     my $dbd = shift;
     my($code, $msg) = @_;
-    if ($msg && $msg =~ /not unique/) {
+    if ($msg && $msg =~ /not unique|UNIQUE constraint failed/) {
         return Data::ObjectDriver::Errors->UNIQUE_CONSTRAINT;
     } else {
         return;