Skip to content
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

add Null to column definition #94

Merged
merged 5 commits into from
Dec 2, 2021

Conversation

jycor
Copy link

@jycor jycor commented Dec 1, 2021

create table t (a int primary key) succeeds
create table t (a int not null primary key) succeeds
create table t (a int null primary key) fails

Create new BoolVal field for ColumnDefinition to more easily check for attempts to create nullable columns with primary key.
Also allows people to do create table t(a int null not null ...) if they want.

@jycor jycor requested a review from zachmu as a code owner December 1, 2021 23:01
@jycor jycor changed the title make Sawnull public add Null to column definition Dec 2, 2021
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jycor jycor merged commit 4e14772 into main Dec 2, 2021
@Hydrocharged Hydrocharged deleted the james/fix-2324-pk-missing-not-null-constraint branch October 13, 2022 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants