Skip to content

MySQL: Unique key index column names not quoted #1753

@tngraessler

Description

@tngraessler

In lib/dialects/mysql/query-generator.js, the unique key index should quote the column names, instead of this:

if (!!options.uniqueKeys) {
Utils..each(options.uniqueKeys, function(columns) {
values.attributes += ", UNIQUE uniq
" + tableName + '' + columns.fields.join('') + " (" + columns.fields.join(', ') + ")" // <--- here
})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugDEPRECATED: replace with the "bug" issue type

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions