dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

escape camelCase tableName for uniqueness validation #597

Closed justinTNT closed 9 years ago

justinTNT commented 9 years ago

validation for uniqueness on a field in a table with a camelCase name was failing with error of missing FROM. escaping the table name preserves camelCase and allows my validation to work.

dxg commented 9 years ago

Thanks, could you also add a test?

dxg commented 9 years ago

That'll have to do..