examples/HDBC/PostgreSQL: revert modified constraint set.

(grafted from da33a551a5a187bdbc043764a59b68f563766635)
This commit is contained in:
Kei Hibino 2017-07-20 17:11:56 +09:00
parent 77bcb26757
commit ebe6071628

View File

@ -87,8 +87,7 @@ newOrange = StockGoods 2 "Orange" 150 10
keyUpdateUidName :: KeyUpdate (Int32, String) StockGoods
keyUpdateUidName = derivedKeyUpdate $ seq' >< name'
runKeyUpdateAndPrint :: (PersistableWidth a, ToSql SqlValue a)
=> KeyUpdate p a -> a -> IO ()
runKeyUpdateAndPrint :: ToSql SqlValue a => KeyUpdate p a -> a -> IO ()
runKeyUpdateAndPrint ku r = handleConnectionIO connect $ \conn -> do
putStrLn $ "SQL: " ++ show ku
rv <- runKeyUpdate conn ku r