HDBC-mysql 0.6.4.0 → 0.6.4.1
raw patch · 2 files changed
+7/−6 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
Database/HDBC/MySQL/Connection.hsc view
@@ -419,8 +419,12 @@ buf_ <- new n bindOfSqlValue' (8::Int) buf_ #{const MYSQL_TYPE_LONGLONG} Unsigned -bindOfSqlValue (Types.SqlEpochTime epoch) = do- let t = utcToMysqlTime $ posixSecondsToUTCTime (fromIntegral epoch)+bindOfSqlValue (Types.SqlEpochTime epoch) = + bindOfSqlValue (Types.SqlUTCTime t)+ where t = posixSecondsToUTCTime (fromIntegral epoch)+ +bindOfSqlValue (Types.SqlUTCTime utct) = do+ let t = utcToMysqlTime utct buf_ <- new t bindOfSqlValue' (#{const sizeof(MYSQL_TIME)}::Int) buf_ #{const MYSQL_TYPE_DATETIME} Signed where utcToMysqlTime :: UTCTime -> MYSQL_TIME@@ -454,9 +458,6 @@ bindOfSqlValue (Types.SqlZonedTime _) = error "SqlZonedTime: bind type not implemented"--bindOfSqlValue (Types.SqlUTCTime _) =- error "SqlUTCTime: bind type not implemented" bindOfSqlValue (Types.SqlDiffTime _) = error "SqlDiffTime: bind type not implemented"
HDBC-mysql.cabal view
@@ -1,7 +1,7 @@ Name: HDBC-mysql Category: Database Synopsis: MySQL driver for HDBC-Version: 0.6.4.0+Version: 0.6.4.1 Stability: Experimental Maintainer: Bryan O'Sullivan <bos@mailrank.com> Author: Chris Waterson