Kev*_*vin 2 postgresql plugins ruby-on-rails geokit
我最近将我的数据库从MySQL切换到PostGres.我也使用GeoKit.当我使用已经播种的新数据库启动我的应用程序时,我收到以下错误:
PGError: ERROR: function radians(character varying) does not exist
LINE 1: ...COS(0.661045389762993)*COS(-2.12957994527573)*COS(RADIANS(ti...
^
HINT: No function matches the given name and argument types. You might
need to add explicit type casts.
Run Code Online (Sandbox Code Playgroud)
任何人都知道为什么现在这会破裂?我知道GeoKit仍然有效,因为当数据库被播种时,它仍然在每张票的模型中执行地理编码,它只是不能正确地进行距离计算.
归档时间: |
|
查看次数: |
1111 次 |
最近记录: |