Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Escaping mysql reserved words when creating foreign keys #98

Closed
jonatanfan opened this Issue · 0 comments

2 participants

@jonatanfan

Hi

Seems like reserved mysql words are not escaped when creating references for a table. Kind of a problem when a column is named order

Like so:
OrderProduct.create_table()
CREATE TABLE orderproduct (id INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY, product_id INTEGER NOT NULL REFERENCES product (id), order_id INTEGER NOT NULL REFERENCES order (id));

@coleifer coleifer closed this in c5a2b10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.