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

Arithmetic operators should return null for incompatible types #105

Closed
asdine opened this issue Jun 28, 2020 · 0 comments · Fixed by #128
Closed

Arithmetic operators should return null for incompatible types #105

asdine opened this issue Jun 28, 2020 · 0 comments · Fixed by #128
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@asdine
Copy link
Collaborator

asdine commented Jun 28, 2020

genji> insert into foo (a) values (1), ('hello'), (true);
genji> select * from foo where a + 1 > 0;
{
  "a": 1
}
type "text" incompatible with "integer"
# currently
genji> SELECT 1 + 'hello';
type "text" incompatible with "integer"

# expected
genji> SELECT 1 + 'hello';
{
  "1 + 'hello'": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant