Skip to content

Support emit_pointers_for_null_types in MySQL #3879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add end-to-end tests for emitting pointers for nullable types i…
…n MySQL code generation
  • Loading branch information
yoRyuuuuu committed Mar 11, 2025
commit 7331e37a044867d1561c74052777b7caaecb25a1

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: Test :one
SELECT 1;
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CREATE TABLE dt_integer (
a tinyint,
b smallint,
c int,
d integer,
e mediumint,
f bigint
);

CREATE TABLE dt_unsigned_integer (
a tinyint unsigned,
b smallint unsigned,
c int unsigned,
d integer unsigned,
e mediumint unsigned,
f bigint unsigned
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "1",
"packages": [
{
"path": "go",
"engine": "mysql",
"name": "datatype",
"schema": "sql/",
"queries": "sql/",
"emit_pointers_for_null_types": true
}
]
}
Loading