mirror of
https://github.com/wader/fq.git
synced 2024-11-29 23:27:12 +03:00
postgres: allow all flovours to decode btree index
This commit is contained in:
parent
5ff6273505
commit
9f61e63702
@ -29,15 +29,14 @@ func init() {
|
||||
func decodePgBTree(d *decode.D, in any) any {
|
||||
d.Endian = decode.LittleEndian
|
||||
|
||||
pgIn, ok := in.(format.PostgresIn)
|
||||
_, ok := in.(format.PostgresIn)
|
||||
if !ok {
|
||||
d.Fatalf("DecodeInArg must be PostgresIn!\n")
|
||||
}
|
||||
|
||||
switch pgIn.Flavour {
|
||||
case PG_FLAVOUR_POSTGRES14:
|
||||
return postgres14.DecodePgBTree(d)
|
||||
}
|
||||
|
||||
return nil
|
||||
//switch pgIn.Flavour {
|
||||
//case PG_FLAVOUR_POSTGRES14:
|
||||
// return postgres14.DecodePgBTree(d)
|
||||
//}
|
||||
return postgres14.DecodePgBTree(d)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user