git.iko.soy/typeable/postgresql-simple
on master help sign in
More documentation fixes
commit2c59c111beffe0c536d9848c4416650609df449b authorLeon P Smith <leon@melding-monads.com> dateTue 26 Mar 2013, 12:32 (14 years ago) parent2c822c8
1 file changed+4−4
src/Database/PostgreSQL/Simple/FromField.hs+4−4
src/Database/PostgreSQL/Simple/FromField.hs+4−4
@@ -39,11 +39,11 @@ instance FromField UUID where
3939 if typeOid f /= builtin2oid UUID
4040 then returnError Incompatible f \"\"
4141 else case B.unpack \`fmap\` mdata of
42− Nothing -> returnError UnexpectedNull f \"\"
43− Just data ->
44− case [ x | (x,t) <- reads data, (\"\",\"\") <- lex t ] of
42+ Nothing -> returnError UnexpectedNull f \"\"
43+ Just dat ->
44+ case [ x | (x,t) <- reads dat, (\"\",\"\") <- lex t ] of
4545 [x] -> return x
46− _ -> returnError ConversionError f data
46+ _ -> returnError ConversionError f dat
4747@
4848
4949Note that because PostgreSQL's @uuid@ type is built into postgres and is