Skip to content

Conversation

@Jille
Copy link
Contributor

@Jille Jille commented Jun 28, 2023

issue #2268 (second comment)

Jille added 4 commits June 28, 2023 12:18
This was needed to understand PostgreSQL IN() which doens't surface as
an *ast.In
The sqlc.slice() templating code needed to understand how to refer to a variable when query_parameter_limit prevented struct emission.

issue sqlc-dev#2268
The pq import was missing in those cases. I ran into this while writing
a test case for sqlc-dev#2268 comment 2.
@kyleconroy kyleconroy merged commit 7098e18 into sqlc-dev:main Jun 28, 2023
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
…qlc-dev#2383)

* Understand sqlc.slice() in more expression types

This was needed to understand PostgreSQL IN() which doens't surface as
an *ast.In

* Fix interaction between query_parameter_limit and sqlc.slice()

The sqlc.slice() templating code needed to understand how to refer to a variable when query_parameter_limit prevented struct emission.

issue sqlc-dev#2268

* Fix imports if a file has both sqlc.slice() and regular arrays

The pq import was missing in those cases. I ran into this while writing
a test case for sqlc-dev#2268 comment 2.

* Fix broken interaction between query_parameter_limit and pq.Array()

issue sqlc-dev#2268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants