Skip to content

hstore doesn't work with binary_parameters #705

@upvas

Description

@upvas

I get an error

"pq: number of pairs (576791101) exceeds the maximum allowed (26843545)"

while executing a query by db.Exec.

The cause is that there is a []byte conversion in Hstore.Value. Without it a query executed as expected.

Code example:

hs := hstore.Hstore{map[string]sql.NullString{"a": {"b", true}}}
db.Exec(`SELECT $1::hstore`, hs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions