【发布时间】:2010-05-11 22:48:12
【问题描述】:
我最近将我的数据库从 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.
有谁知道为什么现在会崩溃?我知道 GeoKit 仍然可以工作,因为在为数据库播种时,它仍在为每个票证执行模型中的地理编码,它只是无法正确进行距离计算。
【问题讨论】:
标签: ruby-on-rails postgresql plugins geokit