不要怂,就是干,撸起袖子干!

Commit c6fc9f7e by Nick Mitchinson

Fixing lint issues

1 parent 41397de5
Showing with 3 additions and 3 deletions
......@@ -114,10 +114,10 @@ SqlString.arrayToList = function(array, timeZone, dialect, field) {
if (!!field && !!field.type) {
// Need to translate DATETIME to TIMESTAMP WITH TIME ZONE for Postgres here
// There has to be a better solution than this
if (dialect == "postgres") {
ret += '::' + field.type.replace(/\(\d+\)/g, '').replace(/DATETIME/, 'TIMESTAMP WITH TIME ZONE')
if (dialect === "postgres") {
ret += '::' + field.type.replace(/\(\d+\)/g, '').replace(/DATETIME/, 'TIMESTAMP WITH TIME ZONE');
} else {
ret += '::' + field.type.replace(/\(\d+\)/g, '')
ret += '::' + field.type.replace(/\(\d+\)/g, '');
}
}
return ret;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!