packages feed

persistent-odbc 0.2.0.0 → 0.2.0.1

raw patch · 2 files changed

+13/−13 lines, 2 filesdep ~HDBC-odbc

Dependency ranges changed: HDBC-odbc

Files

persistent-odbc.cabal view
@@ -1,5 +1,5 @@ name:               persistent-odbc
-version:            0.2.0.0
+version:            0.2.0.1
 synopsis:           Backend for the persistent library using ODBC
 license:            MIT
 license-file:       LICENSE
@@ -11,17 +11,17 @@ stability:          Experimental
 homepage:           https://github.com/gbwey/persistent-odbc
 bug-reports:        https://github.com/gbwey/persistent-odbc/issues
-description:        
+description:
     This package contains backends for persistent using ODBC.
-    It currently supports the following databases: MSSQL, MySql, Oracle, Sqlite, DB2, Postgres. 
-    Uses HDBC-ODBC for accessing ODBC. 
+    It currently supports the following databases: MSSQL, MySql, Oracle, Sqlite, DB2, Postgres.
+    Uses HDBC-ODBC for accessing ODBC.
 
 Flag debug
   Default: False
 
 Flag tester
   Default: False
-  
+
 library
   if flag(debug)
     cpp-options: -DDEBUG
@@ -34,7 +34,7 @@                     , Database.Persist.MigrateMSSQL
                     , Database.Persist.MigrateMySQL
                     , Database.Persist.MigrateDB2
-                    
+
   ghc-options:   -Wall
   hs-source-dirs: src
 
@@ -47,7 +47,7 @@                     , transformers  >= 0.3
                     , convertible   >= 1.0
                     , HDBC          >= 2.2
-                    , HDBC-odbc     >= 2.2 
+                    , HDBC-odbc     >= 2.4
                     , monad-logger
                     , resourcet
                     , monad-control
@@ -56,7 +56,7 @@                     , bytestring    >= 0.9        && < 0.11
 
 
-  if flag(tester) 
+  if flag(tester)
                     hs-source-dirs: examples
                     exposed-modules: TestODBC
                                    , FtypeEnum
@@ -68,7 +68,7 @@       build-depends:  base         >= 4.5        && < 5
                      , persistent-odbc
                      , blaze-html
-                     , esqueleto    >= 2.1 && < 3                
+                     , esqueleto    >= 2.1 && < 3
                     , text          >= 0.11.2     && < 1.3
                     , aeson         >= 0.6
                     , time          >= 1.1
@@ -77,19 +77,19 @@                     , transformers  >= 0.3
                     , convertible   >= 1.0
                     , HDBC          >= 2.2
-                    , HDBC-odbc     >= 2.2 
+                    , HDBC-odbc     >= 2.4
                     , monad-logger
                     , resourcet
                     , monad-control
                     , persistent-template >= 2.1 && < 3
                     , persistent    >= 2.1 && < 3
                     , bytestring    >= 0.9        && < 0.11
-  else 
+  else
       buildable: False
   Main-Is:         TestODBC.hs
   Hs-Source-Dirs:  examples
   Other-Modules:   FtypeEnum, Employment,Test1
-  
+
 source-repository head
   type:     git
   location: git://github.com/gbwey/persistent-odbc.git
src/Database/Persist/MigrateMSSQL.hs view
@@ -286,7 +286,7 @@         ,"order by CONSTRAINT_NAME, KCU1.COLUMN_NAME"]
 
       let vars = [ PersistText $ unDBName tname
-                 , PersistByteString cname
+                 , PersistText $ T.decodeUtf8 cname
                  ]
       cntrs <- with (stmtQuery stmt vars) ($$ CL.consume)
       ref <- case cntrs of