Rails on Heroku does not auto-cast int to string

Issue #20 resolved
Fredrik repo owner created an issue

From the logs:

2014-09-07T12:28:47.601772+00:00 heroku[router]: at=info method=POST path="/attendees" host=desolate-headland-7399.herokuapp.com request_id=b4b98fb7-7644-4763-b20e-4ded78b156c4 fwd="83.233.147.244" dyno=web.1 connect=5ms service=27ms status=500 bytes=1951
2014-09-07T12:28:47.591780+00:00 app[web.1]: PG::UndefinedFunction: ERROR:  operator does not exist: character varying = integer
2014-09-07T12:28:47.591787+00:00 app[web.1]: HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
2014-09-07T12:28:47.579932+00:00 app[web.1]: Processing by AttendeesController#create as HTML
2014-09-07T12:28:47.591784+00:00 app[web.1]: LINE 1: ... one FROM "attendees"  WHERE "attendees"."refnbr" = 93846 LI...
2014-09-07T12:28:47.591789+00:00 app[web.1]: : SELECT  1 AS one FROM "attendees"  WHERE "attendees"."refnbr" = 93846 LIMIT 1
2014-09-07T12:28:47.591786+00:00 app[web.1]:                                                              ^
2014-09-07T12:28:47.593628+00:00 app[web.1]: Completed 500 Internal Server Error in 13ms

Comments (12)

  1. Fredrik reporter
    • removed milestone

    Removing milestone: Beta av färdigt system (DL: 7/9) (automated comment)

  2. Log in to comment