urashin / micro-volunteer-docs

MIT License
1 stars 1 forks source link

【開発:プラットフォーム編】位置情報更新に関するエラー #32

Closed urashin closed 2 years ago

urashin commented 2 years ago

以下のエラーが出るようになった。 おそらく、MySQLのバージョンをlatestにしていることでst_geomfromtextの仕様が変わったのでは? 対応方法として、mysql:8.0.22に固定してみる。

### Error updating database.  Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Invalid GIS data provided to function st_geomfromtext.
### The error may exist in org/microvolunteer/platform/repository/dao/mapper/HelpMapper.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: insert into Help(             handicapped_id             ,volunteer_id             ,location             ,area_id             ,handicap_type             ,handicap_level             ,reliability_th             ,severity             ,comment             ,status)         values(             ?             ,null             ,ST_GeomFromText(?)             ,?             ,?             ,?             ,?             ,?             ,?             ,?)
### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Invalid GIS data provided to function st_geomfromtext.
; Data truncation: Invalid GIS data provided to function st_geomfromtext.
urashin commented 2 years ago

以下で解決 https://github.com/urashin/micro-volunteer-docs/pull/35