Skip to content

Attempting to SELECT a bit field raises an exception #158

Description

@ellie-hg

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions