sequelize-sscce icon indicating copy to clipboard operation
sequelize-sscce copied to clipboard

sscce for underscore column issue introduced by 1a16b91

Open davidgeorgeuk opened this issue 4 years ago • 0 comments

In this scenario there is a table with underscore columns that does not have a primary key. When a model is saved, the generated sql for the update tries to use the camelCase attribute names instead of the underscored column names. The resulting error is

Error: SQLITE_ERROR: no such column: userId

This issue was introduced in [email protected]. Prior versions did not have this issue.

davidgeorgeuk avatar Aug 06 '21 13:08 davidgeorgeuk