相关疑难解决方法(0)

Rails 3.1.Heroku PGError:运算符不存在:字符变化=整数

修复错误有点麻烦.

一切都适用于本地机器.在PG上,heroku是错误的.

这是日志:

  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m ActionView::Template::Error (PGEr
  ror: ERROR:  operator does not exist: character varying = integer
  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m LINE 1: ...T "reviews".* FROM "re
  views"  WHERE "reviews"."trip_id" = 32
  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m : SELECT "reviews".* FROM "review
  s"  WHERE "reviews"."trip_id" = 32):
  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m     31:   <div style='display:non
  e'>
  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m     33:      <% for review in @tr
  ip.reviews %>
  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m     34:
  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m     32:    <div id="inline">
  ?[32m2012-01-09T19:52:24+00:00 app[web.1]:?[0m HINT:  No operator matches the gi
  ven name and argument type(s). You …
Run Code Online (Sandbox Code Playgroud)

sqlite postgresql ruby-on-rails heroku

23
推荐指数
1
解决办法
2万
查看次数

标签 统计

heroku ×1

postgresql ×1

ruby-on-rails ×1

sqlite ×1