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

Sunday, October 26 2008
1063 [PATCH] binary data corruption in PostgreSQL adapter was updated in Ruby on Rails
  • Adam Majer
    Adam Majer commented at 7:00 PM

    Only using ftype is good enough in current ActiveRecord implementation. PostgreSQL will always return escapped binary on queries unless it is told so otherwise....

Friday, October 24 2008
1063 [PATCH] binary data corruption in PostgreSQL adapter was updated in Ruby on Rails
  • Adam Majer
    Adam Majer commented at 10:30 PM

    Err, see my first post to the report? That is the test case right there with a step-by-step guide how to reproduce it.

    People generally do not do,

    model.blob_co...

  • Adam Majer
    Adam Majer commented at 10:25 PM

    BTW, regarding Kane's post, your usage is incorrect because,

    1. you are executing the query in the pg driver
    2. the result is PGresult - has nothing to do with AR
    3. yo...
  • Adam Majer
    Adam Majer commented at 3:45 PM

    Yes, it moves the escape/escape from column to driver. All binary data is unescaped when it is fetched from PostgreSQL driver and stored as binary inside Active...

Friday, September 19 2008
1063 [PATCH] binary data corruption in PostgreSQL adapter was updated in Ruby on Rails
  • Adam Majer
    Adam Majer commented at 10:59 PM
    
    http://git.debian.org/?p=collab-maint/rails.git;a=shortlog;h=refs/heads/for-upstream
    

    Just copy/paste it.

  • Adam Majer
    • Title changed from binary data corruption in PostgreSQL adapter to [PATCH] binary data corruption in PostgreSQL adapter
    by Adam Majer at 10:58 PM

    Proper link

    Ok, trying again with the link

  • Adam Majer
    Adam Majer commented at 10:57 PM

    Added patch,

    http://git.debian.org/?p=collab-.../rails.git;a=shortlog;h=refs/heads/for-upstream

    The commit you want is which is at top and vs. edge as of now, 9...

Thursday, September 18 2008
1063 binary data corruption in PostgreSQL adapter was updated in Ruby on Rails
  • Adam Majer
    • Title changed from binary data broken with PostgreSQL adapter to binary data corruption in PostgreSQL adapter
    by Adam Majer at 11:32 PM
Wednesday, September 17 2008
1063 binary data broken with PostgreSQL adapter was updated in Ruby on Rails
  • Adam Majer
    • Tag changed from activerecord, bug, postgresql to 2.0-stable, 2.1, activerecord, bug, edge, postgresql
    by Adam Majer at 9:26 PM

    Checked 2.0.2, 2-1-stable branch and latest HEAD. As expected, same problem.

  • Adam Majer
    Adam Majer commented at 9:09 PM

    Just an aside, ignoring unescaping bit makes my example of '\404' work but of course breaks on actual data fetch from database...