Navigation Menu

Skip to content

Commit

Permalink
mysql57 test: fix expected
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 20, 2016
1 parent 54cba13 commit 1900ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Expand Up @@ -2,13 +2,8 @@ DROP TABLE IF EXISTS shops;
CREATE TABLE shops (
location GEOMETRY NOT NULL
);
SET SESSION sql_mode = '';
INSERT INTO shops VALUES (NULL), (NULL);
Warnings:
Warning 1048 Column 'location' cannot be null
SET SESSION sql_mode = default;
ERROR 23000: Column 'location' cannot be null
SELECT ST_AsText(location) FROM shops;
ST_AsText(location)
POINT(0 0)
POINT(0 0)
DROP TABLE shops;
Expand Up @@ -27,9 +27,8 @@ CREATE TABLE shops (
location GEOMETRY NOT NULL
);

SET SESSION sql_mode = '';
--error ER_BAD_NULL_ERROR
INSERT INTO shops VALUES (NULL), (NULL);
SET SESSION sql_mode = default;

SELECT ST_AsText(location) FROM shops;

Expand Down

0 comments on commit 1900ca6

Please sign in to comment.