We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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) );
test_table
id
latitude
longitude
geo_point
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
The text was updated successfully, but these errors were encountered:
STORED NOT NULL 我能看明白,解析确实有点问题,但是这个 SRID 4326是啥? 官方语法没有这个。
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: