Skip to content

Commit

Permalink
feat(datatypes) Remove geometryselect function
Browse files Browse the repository at this point in the history
  • Loading branch information
janmeier committed Nov 10, 2015
1 parent 785ff33 commit 8879669
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions lib/dialects/abstract/query-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -2308,10 +2304,6 @@ var QueryGenerator = {

booleanValue: function(value) {
return value;
},

geometrySelect: function(column) {
return this.quoteIdentifiers(column);
}
};

Expand Down
4 changes: 0 additions & 4 deletions lib/dialects/mysql/query-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down
4 changes: 0 additions & 4 deletions lib/dialects/postgres/query-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,10 +877,6 @@ var QueryGenerator = {
}

return AbstractQueryGenerator.setAutocommitQuery.call(this, value, options);
},

geometrySelect: function(column) {
return this.quoteIdentifiers(column);
}
};

Expand Down
2 changes: 0 additions & 2 deletions lib/dialects/postgres/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ var Query = function(client, sequelize, options) {
};
Utils.inherit(Query, AbstractQuery);

Query.prototype.parseDialectSpecificFields = parseDialectSpecificFields;

/**
* rewrite query with parameters
*/
Expand Down

0 comments on commit 8879669

Please sign in to comment.