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

Reserved keywords in the sql causing problems #13

Open
zeebo opened this issue Mar 9, 2017 · 0 comments
Open

Reserved keywords in the sql causing problems #13

zeebo opened this issue Mar 9, 2017 · 0 comments
Assignees

Comments

@zeebo
Copy link
Member

zeebo commented Mar 9, 2017

The schema to create the table for the following model fails on sqlite3:

model entry (
	key   pk
	field pk   serial64
	field when utimestamp
)

The problem is when is a keyword and confuses things. There's a workaround: just add a column directive like

model entry (
	key   pk
	field pk   serial64
	field when utimestamp (column _when)
)

but it'd be nice if DBX did this for you.

@zeebo zeebo self-assigned this Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant