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

Commit 8879669a by Jan Aagaard Meier

feat(datatypes) Remove geometryselect function

1 parent 785ff33e
......@@ -1066,10 +1066,6 @@ var QueryGenerator = {
return self.handleSequelizeMethod(attr);
}
if (mainModel && mainModel._isGeometryAttribute(attr)) {
attr = self.geometrySelect(attr);
}
if (Array.isArray(attr) && attr.length === 2) {
attr = attr.slice();
......@@ -2308,10 +2304,6 @@ var QueryGenerator = {
booleanValue: function(value) {
return value;
},
geometrySelect: function(column) {
return this.quoteIdentifiers(column);
}
};
......
......@@ -321,10 +321,6 @@ var QueryGenerator = {
*/
dropForeignKeyQuery: function(tableName, foreignKey) {
return 'ALTER TABLE ' + this.quoteTable(tableName) + ' DROP FOREIGN KEY ' + this.quoteIdentifier(foreignKey) + ';';
},
geometrySelect: function(column) {
return this.quoteIdentifiers(column);
}
};
......
......@@ -877,10 +877,6 @@ var QueryGenerator = {
}
return AbstractQueryGenerator.setAutocommitQuery.call(this, value, options);
},
geometrySelect: function(column) {
return this.quoteIdentifiers(column);
}
};
......
......@@ -22,8 +22,6 @@ var Query = function(client, sequelize, options) {
};
Utils.inherit(Query, AbstractQuery);
Query.prototype.parseDialectSpecificFields = parseDialectSpecificFields;
/**
* rewrite query with parameters
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!