Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Postgresql Adapter not identifying binary column

#1700

(from http://pastie.org/353214)

Association => Association(id: integer, server_url: , handle: string, secret: , issued: integer, lifetime: integer, assoc_type: string)

notice the "server_url" and "secret" column does not know its type. (they are both bytea/binary columns)

(ruby 1.8.7) Loading development environment (Rails 2.2.2)

ActiveRecord::Base.connection.class => ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

ActiveRecord::Base.connection.columns("open_id_associations") => [#<ActiveRecord::ConnectionAdapters::Column:0xb6d40d30

Notice the class is a Column instead of a PostgreSQLColumn. when i try to save an Assocation model, postgresql throws an encoding error. Since the column type is not identified, AR is not escaping the data for that column.

Reported by Don Park · January 5th, 2009 @ 09:49 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Don Park
    Don Park

    the problem was a conflict/bug in the post_gis plugin. please close ticket!

    January 5th, 2009 @ 10:36 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to invalid

    March 7th, 2009 @ 02:06 PM