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

sql: the type of NULL is "unknown", not "NULL" #23142

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

knz
Copy link
Contributor

@knz knz commented Feb 27, 2018

Fixes #23100.

This renames types.Null to types.Unknown and adjusts its type name
accordingly.

pg_typeof() is also modified to accept NULL arguments, so that it can return
"unknown" as expected.

Release note (sql change): the type determined for constant NULL
expressions is renamed to "unknown" for better compatibility with
PostgreSQL.

cc @cockroachdb/sql

@knz knz requested review from RaduBerinde and a team February 27, 2018 09:29
@knz knz requested a review from a team as a code owner February 27, 2018 09:29
@knz knz requested review from a team February 27, 2018 09:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

This renames `types.Null` to `types.Unknown` and adjusts its type name
accordingly.

`pg_typeof()` is also modified to accept NULL arguments, so that it can return
"unknown" as expected.

Release note (sql change): the type determined for constant NULL
expressions is renamed to "unknown" for better compatibility with
PostgreSQL.
@knz
Copy link
Contributor Author

knz commented Feb 27, 2018

cc @andy-kimball

@andy-kimball
Copy link
Contributor

:lgtm:


Review status: 0 of 36 files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from Reviewable

@knz
Copy link
Contributor Author

knz commented Feb 27, 2018

TFYR!

@knz knz merged commit 4ef43b8 into cockroachdb:master Feb 27, 2018
@knz knz deleted the 20180227-null-unknown branch February 27, 2018 14:29
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

3 participants