git.iko.soy/typeable/postgresql-simple
on master help sign in
Convert UUIDs to a Plain action instead of Escape
commit65a22226abe1e665127fefe000a36a6c683fbd9d authorBas van Dijk <v.dijk.bas@gmail.com> dateMon 21 Oct 2013, 15:21 (13 years ago) parent6df67a9
1 file changed+1−1
src/Database/PostgreSQL/Simple/ToField.hs+1−1
src/Database/PostgreSQL/Simple/ToField.hs+1−1
@@ -235,7 +235,7 @@ instance (ToField a) => ToField (Vector a) where
235235 -- that the use of type-specific separator characters is unnecessary.
236236
237237instance ToField UUID where
238− toField = toField . UUID.toASCIIBytes
238+ toField = Plain . inQuotes . fromByteString . UUID.toASCIIBytes
239239
240240instance ToField JSON.Value where
241241 toField = toField . JSON.encode