Skip to content

Commit 52608cb

Browse files
committed
Add a test case for INDEX on CREATE TABLE
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent cf5bf6f commit 52608cb

File tree

3 files changed

+1134
-0
lines changed

3 files changed

+1134
-0
lines changed

tests/Parser/CreateStatementTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function createProvider(): array
4949
['parser/parseCreateTable14'],
5050
['parser/parseCreateTable15'],
5151
['parser/parseCreateTable16'],
52+
['parser/parseCreateTable17'],
5253
['parser/parseCreateTableErr1'],
5354
['parser/parseCreateTableErr2'],
5455
['parser/parseCreateTableErr3'],
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CREATE TABLE `autos8` (
2+
`auto_id` int(10) UNSIGNED NOT NULL UNIQUE KEY,
3+
`make` varchar(128) DEFAULT NULL,
4+
`year` int(11) DEFAULT NULL,
5+
`mileage` int(11) DEFAULT NULL,
6+
`city` point NOT NULL,
7+
SPATIAL INDEX `city_index` (`city`)
8+
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;

0 commit comments

Comments
 (0)