git.iko.soy/typeable/postgresql-simple
on master help sign in
Issue SET datestyle TO ISO at connection start up
commit68023a1326484309b1d94b85e6112b92de1cfac4 authorLeon P Smith <leon@melding-monads.com> dateFri 8 Jun 2012, 17:01 (14 years ago) parent920f268
1 file changed+2−1
src/Database/PostgreSQL/Simple/Internal.hs+2−1
src/Database/PostgreSQL/Simple/Internal.hs+2−1
@@ -153,7 +153,8 @@ connectPostgreSQL connstr = do
153153 connectionHandle <- newMVar conn
154154 connectionObjects <- newMVar (IntMap.empty)
155155 let wconn = Connection{..}
156− _ <- execute_ wconn "SET standard_conforming_strings TO on"
156+ _ <- execute_ wconn "SET standard_conforming_strings TO on;\
157+ \SET datestyle TO ISO"
157158 return Connection{..}
158159 _ -> do
159160 msg <- maybe "connectPostgreSQL error" id <$> PQ.errorMessage conn