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 8879669a
authored
Nov 10, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(datatypes) Remove geometryselect function
1 parent
785ff33e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
18 deletions
lib/dialects/abstract/query-generator.js
lib/dialects/mysql/query-generator.js
lib/dialects/postgres/query-generator.js
lib/dialects/postgres/query.js
lib/dialects/abstract/query-generator.js
View file @
8879669
...
@@ -1066,10 +1066,6 @@ var QueryGenerator = {
...
@@ -1066,10 +1066,6 @@ var QueryGenerator = {
return
self
.
handleSequelizeMethod
(
attr
);
return
self
.
handleSequelizeMethod
(
attr
);
}
}
if
(
mainModel
&&
mainModel
.
_isGeometryAttribute
(
attr
))
{
attr
=
self
.
geometrySelect
(
attr
);
}
if
(
Array
.
isArray
(
attr
)
&&
attr
.
length
===
2
)
{
if
(
Array
.
isArray
(
attr
)
&&
attr
.
length
===
2
)
{
attr
=
attr
.
slice
();
attr
=
attr
.
slice
();
...
@@ -2308,10 +2304,6 @@ var QueryGenerator = {
...
@@ -2308,10 +2304,6 @@ var QueryGenerator = {
booleanValue
:
function
(
value
)
{
booleanValue
:
function
(
value
)
{
return
value
;
return
value
;
},
geometrySelect
:
function
(
column
)
{
return
this
.
quoteIdentifiers
(
column
);
}
}
};
};
...
...
lib/dialects/mysql/query-generator.js
View file @
8879669
...
@@ -321,10 +321,6 @@ var QueryGenerator = {
...
@@ -321,10 +321,6 @@ var QueryGenerator = {
*/
*/
dropForeignKeyQuery
:
function
(
tableName
,
foreignKey
)
{
dropForeignKeyQuery
:
function
(
tableName
,
foreignKey
)
{
return
'ALTER TABLE '
+
this
.
quoteTable
(
tableName
)
+
' DROP FOREIGN KEY '
+
this
.
quoteIdentifier
(
foreignKey
)
+
';'
;
return
'ALTER TABLE '
+
this
.
quoteTable
(
tableName
)
+
' DROP FOREIGN KEY '
+
this
.
quoteIdentifier
(
foreignKey
)
+
';'
;
},
geometrySelect
:
function
(
column
)
{
return
this
.
quoteIdentifiers
(
column
);
}
}
};
};
...
...
lib/dialects/postgres/query-generator.js
View file @
8879669
...
@@ -877,10 +877,6 @@ var QueryGenerator = {
...
@@ -877,10 +877,6 @@ var QueryGenerator = {
}
}
return
AbstractQueryGenerator
.
setAutocommitQuery
.
call
(
this
,
value
,
options
);
return
AbstractQueryGenerator
.
setAutocommitQuery
.
call
(
this
,
value
,
options
);
},
geometrySelect
:
function
(
column
)
{
return
this
.
quoteIdentifiers
(
column
);
}
}
};
};
...
...
lib/dialects/postgres/query.js
View file @
8879669
...
@@ -22,8 +22,6 @@ var Query = function(client, sequelize, options) {
...
@@ -22,8 +22,6 @@ var Query = function(client, sequelize, options) {
};
};
Utils
.
inherit
(
Query
,
AbstractQuery
);
Utils
.
inherit
(
Query
,
AbstractQuery
);
Query
.
prototype
.
parseDialectSpecificFields
=
parseDialectSpecificFields
;
/**
/**
* rewrite query with parameters
* rewrite query with parameters
*/
*/
...
...
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