I'm seeing the following error when I attempt to SELECT a bit(n) field for any value of n, (I have tested this on ns 1-5,100-105):
Incompatible {errSQLType = "bit", errSQLTableOid = Nothing, errSQLField = "", errHaskellType = "Int64", errMessage = "types incompatible"}
This seems a bit suspicious to me because Int64 could only possible hold up to 64 bits, and the bit type supports much higher values (at least 64K since pgvector supports up to bit(64000). Returning a ByteString or something similar feels like it would be a better fit here?
I'd be happy to open a PR if I got some minor guidance on how to proceed to fix the issue. Is it as simple as modifying the okBinary function to also accept the oid TI.bit?
I'm seeing the following error when I attempt to
SELECTabit(n)field for any value ofn, (I have tested this onns1-5,100-105):This seems a bit suspicious to me because
Int64could only possible hold up to 64 bits, and thebittype supports much higher values (at least 64K sincepgvectorsupports up tobit(64000). Returning aByteStringor something similar feels like it would be a better fit here?I'd be happy to open a PR if I got some minor guidance on how to proceed to fix the issue. Is it as simple as modifying the
okBinaryfunction to also accept the oidTI.bit?