mysql8中执行特定建表语句时,出现ParserException
swiftlei opened this issue · comments
dbtype: mysql
dbversion: 8.0
duird version: 1.2.22
error sql:
CREATE TABLE test_table
(
id
bigint NOT NULL AUTO_INCREMENT COMMENT 'ID',
latitude
decimal(9, 7) NULL COMMENT '纬度,为空表示定位失败',
longitude
decimal(10, 7) NULL COMMENT '经度,为空表示定位失败',
geo_point
POINT GENERATED ALWAYS AS (ST_POINTFROMTEXT(CONCAT('POINT(', latitude, ' ', longitude, ')'), 4326)) STORED NOT NULL SRID 4326,
PRIMARY KEY (id
)
);
error info:
com.alibaba.druid.sql.parser.ParserException: syntax error, error in :'STORED NOT NULL SRID 4326,
', expect ), actual null, pos ..., line ..., column ..., token IDENTIFIER SRID
STORED NOT NULL 我能看明白,解析确实有点问题,但是这个 SRID 4326是啥? 官方语法没有这个。