Skip to content

Commit 8b08c70

Browse files
committed
Add test for SRID in column definition
1 parent abe850f commit 8b08c70

File tree

3 files changed

+801
-0
lines changed

3 files changed

+801
-0
lines changed

tests/Parser/CreateStatementTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public static function createProvider(): array
6262
['parser/parseCreateTableAsSelect'],
6363
['parser/parseCreateTableLike'],
6464
['parser/parseCreateTableSpatial'],
65+
['parser/parseCreateTableSRID'],
6566
['parser/parseCreateTableTimestampWithPrecision'],
6667
['parser/parseCreateTableEnforcedCheck'],
6768
['parser/parseCreateTableNotEnforcedCheck'],
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TABLE IF NOT EXISTS `public_areas` (
2+
`id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
3+
`kind` enum('COUNTRY','REGION','DEPARTMENT','MUNICIPALITY') NOT NULL,
4+
`area` geometry NOT NULL SRID 4326,
5+
`properties` json NOT NULL,
6+
`title` varchar(100) NOT NULL
7+
);

0 commit comments

Comments
 (0)