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.

Adam Majer's latest activity

Wednesday, September 17 2008
1063 binary data broken with PostgreSQL adapter was updated in Ruby on Rails
  • Adam Majer
    Adam Majer commented at 9:07 PM

    Traced it back to the

    
       self.binary_to_string(value)
    

    in postgreSQL adapter. Basically, rails assumes that stored values are escaped by database and need un...

  • Adam Majer
    Adam Majer commented at 5:14 PM

    In addition, only binary data with \ followed by 3 numbers seems to be affected.

  • Adam Majer
    Adam Majer created the ticket at 4:53 PM

    To create the problem, you only need to do,

    
      rails my_app; cd my_app
      script/generate model BorkedBinary b_data:binary
    

    ... fix config/database.yml so rail...