diff --git a/Database/Persist/MySQL.hs b/Database/Persist/MySQL.hs
--- a/Database/Persist/MySQL.hs
+++ b/Database/Persist/MySQL.hs
@@ -126,8 +126,8 @@
 
 
 -- | SQL code to be executed when inserting an entity.
-insertSql' :: DBName -> [DBName] -> Either Text (Text, Text)
-insertSql' t cols = Right (doInsert, "SELECT LAST_INSERT_ID()")
+insertSql' :: DBName -> [DBName] -> DBName -> InsertSqlResult
+insertSql' t cols _ = ISRInsertGet doInsert "SELECT LAST_INSERT_ID()"
     where
       doInsert = pack $ concat
         [ "INSERT INTO "
diff --git a/persistent-mysql.cabal b/persistent-mysql.cabal
--- a/persistent-mysql.cabal
+++ b/persistent-mysql.cabal
@@ -1,5 +1,5 @@
 name:            persistent-mysql
-version:         1.0.1
+version:         1.0.2
 license:         MIT
 license-file:    LICENSE
 author:          Felipe Lessa <felipe.lessa@gmail.com>, Michael Snoyman
@@ -28,7 +28,7 @@
                    , transformers          >= 0.2.1    && < 0.4
                    , mysql-simple          >= 0.2.2.3  && < 0.3
                    , mysql                 >= 0.1.1.3  && < 0.2
-                   , persistent            >= 1.0      && < 1.1
+                   , persistent            >= 1.0.2    && < 1.1
                    , containers            >= 0.2
                    , bytestring            >= 0.9
                    , text                  >= 0.11.0.6 && < 0.12
