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

Commit 0b631e03 by Mike Ringrose

Making data type test currently postgres specific.

1 parent 8fcc9edb
Showing with 18 additions and 21 deletions
...@@ -667,31 +667,28 @@ suite(Support.getTestDialectTeaser('SQL'), function() { ...@@ -667,31 +667,28 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
}); });
} }
suite('GEOMETRY', function () { if (current.dialect.supports.ARRAY) {
testsql('GEOMETRY', DataTypes.GEOMETRY, { suite('GEOMETRY', function () {
default: 'GEOMETRY', testsql('GEOMETRY', DataTypes.GEOMETRY, {
postgres: 'GEOMETRY' postgres: 'GEOMETRY'
}); });
testsql('GEOMETRY(\'POINT\')', DataTypes.GEOMETRY('POINT'), { testsql('GEOMETRY(\'POINT\')', DataTypes.GEOMETRY('POINT'), {
default: 'GEOMETRY(POINT)', postgres: 'GEOMETRY(POINT)'
postgres: 'GEOMETRY(POINT)' });
});
testsql('GEOMETRY(\'LINESTRING\')', DataTypes.GEOMETRY('LINESTRING'), { testsql('GEOMETRY(\'LINESTRING\')', DataTypes.GEOMETRY('LINESTRING'), {
default: 'GEOMETRY(LINESTRING)', postgres: 'GEOMETRY(LINESTRING)',
postgres: 'GEOMETRY(LINESTRING)', });
});
testsql('GEOMETRY(\'POLYGON\')', DataTypes.GEOMETRY('POLYGON'), { testsql('GEOMETRY(\'POLYGON\')', DataTypes.GEOMETRY('POLYGON'), {
default: 'GEOMETRY(POLYGON)', postgres: 'GEOMETRY(POLYGON)'
postgres: 'GEOMETRY(POLYGON)' });
});
testsql('GEOMETRY(\'POINT\',4326)', DataTypes.GEOMETRY('POINT', 4326), { testsql('GEOMETRY(\'POINT\',4326)', DataTypes.GEOMETRY('POINT', 4326), {
default: 'GEOMETRY(POINT,4326)', postgres: 'GEOMETRY(POINT,4326)'
postgres: 'GEOMETRY(POINT,4326)' });
}); });
}); }
}); });
}); });
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!