git.iko.soy/typeable/postgresql-simple
on master help sign in
Remove static citext type
commit0a0e1e3cfaca763af060f2338fc3876e29ed5c39 authorMaximilian Tagher <feedback.tagher@gmail.com> dateSat 25 Nov 2017, 08:31 (9 years ago) parent87c6c2d
2 files changed+1−24
src/Database/PostgreSQL/Simple/TypeInfo/Static.hs−21 tools/GenTypeInfo.hs+1−3
src/Database/PostgreSQL/Simple/TypeInfo/Static.hs−21
@@ -132,8 +132,6 @@ module Database.PostgreSQL.Simple.TypeInfo.Static
132132 , _daterange
133133 , int8range
134134 , _int8range
135− , citext
136− , array_citext
137135 ) where
138136
139137import Database.PostgreSQL.LibPQ (Oid(..))
@@ -255,8 +253,6 @@ staticTypeInfo (Oid x) = case x of
255253 3913 -> Just _daterange
256254 3926 -> Just int8range
257255 3927 -> Just _int8range
258− 60129 -> Just citext
259− 60134 -> Just array_citext
260256 _ -> Nothing
261257
262258bool :: TypeInfo
@@ -1234,20 +1230,3 @@ _int8range = Array {
12341230 typname = "_int8range",
12351231 typelem = int8range
12361232 }
1237−
1238−citext :: TypeInfo
1239−citext = Basic {
1240− typoid = Oid 60129,
1241− typcategory = 'S',
1242− typdelim = ',',
1243− typname = "citext"
1244− }
1245−
1246−array_citext :: TypeInfo
1247−array_citext = Array {
1248− typoid = Oid 60134,
1249− typcategory = 'A',
1250− typdelim = ',',
1251− typname = "_citext",
1252− typelem = citext
1253− }
tools/GenTypeInfo.hs+1−3
@@ -195,9 +195,7 @@ daterange
195195_daterange
196196int8range
197197_int8range
198−citext
199−_citext array_citext
200−|] -- Note: You must enable the citext extension (CREATE EXTENSION IF NOT EXISTS citext) to generate the citext values
198+|]
201199
202200instance IsString Blaze.Builder where
203201 fromString = Blaze.fromByteString . fromString