-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
* Updated MySQL copyfrom template to handle strucs with 1 argument * Added copyfrom 1 arg struct testcase * Fixed issue where copyfrom structs were not being emitted * Added testcase to catch not emitting structs used with copyfrom
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- name: InsertMultipleValues :copyfrom | ||
INSERT INTO foo (a, b) VALUES (?, ?); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE foo (a text, b text); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "1", | ||
"packages": [ | ||
{ | ||
"path": "go", | ||
"sql_package": "database/sql", | ||
"sql_driver": "github.com/go-sql-driver/mysql", | ||
"engine": "mysql", | ||
"name": "querytest", | ||
"schema": "schema.sql", | ||
"queries": "query.sql", | ||
"query_parameter_limit": 4 | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/sqlc-dev/sqlc/issues/3443 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- name: InsertSingleValue :copyfrom | ||
INSERT INTO foo (a) VALUES (?); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE foo (a text); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "1", | ||
"packages": [ | ||
{ | ||
"path": "go", | ||
"sql_package": "database/sql", | ||
"sql_driver": "github.com/go-sql-driver/mysql", | ||
"engine": "mysql", | ||
"name": "querytest", | ||
"schema": "schema.sql", | ||
"queries": "query.sql", | ||
"query_parameter_limit": 0 | ||
} | ||
] | ||
} |