Skip to content
Permalink
Browse files
[CONJS-39] correcting geometry test for MySQL 5.5 that doesn't have S…
…T_LineFromText / ST_PointFromText / ST_PolygonFromText functions - part 2
  • Loading branch information
rusher committed Sep 20, 2018
1 parent 4b7b4e1 commit cd6d938
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
@@ -4,9 +4,9 @@ const base = require("../../base.js");
const { assert } = require("chai");

describe("geometry data type", () => {
it("Point format", done => {
it("Point format", function(done) {
//MySQL 5.5 doesn't have ST_PointFromText function
if (!shareConn.info.isMariaDB() && shareConn.info.hasMinVersion(5, 6, 0)) this.skip();
if (!shareConn.info.isMariaDB() && !shareConn.info.hasMinVersion(5, 6, 0)) this.skip();
shareConn.query("CREATE TEMPORARY TABLE gis_point (g POINT)");
shareConn
.query(
@@ -100,9 +100,9 @@ describe("geometry data type", () => {
.catch(done);
});

it("LineString format", done => {
it("LineString format", function(done) {
//MySQL 5.5 doesn't have ST_LineFromText function
if (!shareConn.info.isMariaDB() && shareConn.info.hasMinVersion(5, 6, 0)) this.skip();
if (!shareConn.info.isMariaDB() && !shareConn.info.hasMinVersion(5, 6, 0)) this.skip();

shareConn.query("CREATE TEMPORARY TABLE gis_line (g LINESTRING)");
shareConn
@@ -197,9 +197,9 @@ describe("geometry data type", () => {
.catch(done);
});

it("Polygon format", done => {
it("Polygon format", function(done) {
//MySQL 5.5 doesn't have ST_PolygonFromText function
if (!shareConn.info.isMariaDB() && shareConn.info.hasMinVersion(5, 6, 0)) this.skip();
if (!shareConn.info.isMariaDB() && !shareConn.info.hasMinVersion(5, 6, 0)) this.skip();

shareConn.query("CREATE TEMPORARY TABLE gis_polygon (g POLYGON)");
shareConn
@@ -45,7 +45,7 @@ describe("streaming", () => {
.then(() => {
const https = require("https");
https.get(
"https://node.green/#ES2018-features-Promise-prototype-finally-basic-support",
"https://node.green/",
readableStream => {
shareConn
.query("INSERT INTO StreamingContent (b) VALUE (?)", [readableStream])

0 comments on commit cd6d938

Please sign in to comment.