Skip to content

Commit

Permalink
test: Add a test case for #1745
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbenton committed Oct 16, 2023
1 parent 0cfadb0 commit 49091fb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/endtoend/testdata/select_system/issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/sqlc-dev/sqlc/issues/1745
2 changes: 2 additions & 0 deletions internal/endtoend/testdata/select_system/stdlib/query.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- name: GetCtId :one
SELECT ctid FROM test;
3 changes: 3 additions & 0 deletions internal/endtoend/testdata/select_system/stdlib/schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE TABLE test (
id INT
);
14 changes: 14 additions & 0 deletions internal/endtoend/testdata/select_system/stdlib/sqlc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "2"
cloud:
project: "01HAQMMECEYQYKFJN8MP16QC41"
sql:
- engine: "postgresql"
schema: "schema.sql"
queries: "query.sql"
gen:
go:
package: "querytest"
out: "go"
sql_package: "database/sql"
database:
managed: true

0 comments on commit 49091fb

Please sign in to comment.