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

Prevent creating a table if constraints are incoherent #222

Closed
asdine opened this issue Oct 4, 2020 · 0 comments · Fixed by #279
Closed

Prevent creating a table if constraints are incoherent #222

asdine opened this issue Oct 4, 2020 · 0 comments · Fixed by #279
Labels
sql SQL API and syntax
Milestone

Comments

@asdine
Copy link
Collaborator

asdine commented Oct 4, 2020

CREATE TABLE foo (
  a INTEGER,
  a.b[0] TEXT
);

In this example, a is expected to be both an integer an a document, which is not possible. Detect these kind of incoherence and return an error.

@asdine asdine added the sql SQL API and syntax label Oct 4, 2020
@asdine asdine added this to the v0.9.0 milestone Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL API and syntax
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant