Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit a9c51a84
authored
Jun 30, 2014
by
Dirk Raeder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #9182 - renameColumnQuery returns quoted column name
1 parent
5a79c52a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/dialects/sqlite/query-generator.js
lib/dialects/sqlite/query-generator.js
View file @
a9c51a8
...
@@ -384,10 +384,10 @@ module.exports = (function() {
...
@@ -384,10 +384,10 @@ module.exports = (function() {
return
Utils
.
_
.
template
(
query
,
{
return
Utils
.
_
.
template
(
query
,
{
tableName
:
tableName
,
tableName
:
tableName
,
attributeNamesImport
:
Utils
.
_
.
keys
(
attributes
).
map
(
function
(
attr
)
{
attributeNamesImport
:
Utils
.
_
.
keys
(
attributes
).
map
(
function
(
attr
)
{
return
(
attrNameAfter
===
attr
)
?
attrNameBefore
+
' AS '
+
attr
:
attr
return
(
attrNameAfter
===
attr
)
?
'`'
+
attrNameBefore
+
'` AS `'
+
attr
+
'`'
:
'`'
+
attr
+
'`'
}.
bind
(
this
)).
join
(
', '
),
}.
bind
(
this
)).
join
(
', '
),
attributeNamesExport
:
Utils
.
_
.
keys
(
attributes
).
map
(
function
(
attr
)
{
attributeNamesExport
:
Utils
.
_
.
keys
(
attributes
).
map
(
function
(
attr
)
{
return
attr
return
'`'
+
attr
+
'`'
}.
bind
(
this
)).
join
(
', '
)
}.
bind
(
this
)).
join
(
', '
)
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment