Closed hyouuu closed 8 years ago
So, when I changed desc
name to desca
it works... Apparently because SQL has this DESC keyword - added a feature request in fluent (https://github.com/vapor/fluent/issues/131) but it might actually should be a feature in each provider? Please advise and close as needed
Good find! Closing this issue in favor of the Fluent issue.
Not sure if the issue should belong to provider or driver; I have a Trip model class, and when preparing the console outputs: Preparing Trip Failed to prepare Trip invalidSQL("ERROR: syntax error at or near \"desc\"\nLINE 1: ...RIMARY KEY NOT NULL, title VARCHAR(255) NOT NULL, desc VARCH...\n ^\n")
In main.swift I have:
And the Trip class: