Skip to content

hstore doesn't work with binary_parameters #705

Closed

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)

Activity

  1. henriquechehad commented on Jun 30, 2020

    @henriquechehad
  2. ip75 commented on Nov 2, 2021

    @ip75
  3. added 2 commits that reference this issue on Mar 11, 2026
    2d1aec6
    0d24fd4
  4. added a commit that references this issue on Mar 11, 2026
    5db0f0d
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions