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.

Jon Jensen's latest activity

Tuesday, March 22 2011
6535 find_or_create_by on an association always creates new records was updated in Ruby on Rails
  • Jon Jensen
    Jon Jensen commented at 7:44 PM

    In addition to the incorrect behavior, it can also cause unhandled exceptions for postgres. For example, company.employees.find_or_create_by_group_id_and_name(1...

Wednesday, March 16 2011
66 True/False conditions broken for sqlite was updated in Ruby on Rails
  • Jon Jensen
    • Tag set to activerecord, bug, patch, sqlite
    by Jon Jensen at 7:34 PM

    Any chance we reopen this ticket? The proposed patch was wrong but the idea is right. Rails is putting the strings "t" and "f" in these columns, when the more a...

Friday, April 02 2010
2644 Memcache session store + litespeed (and i think passenger) was updated in Ruby on Rails
  • Jon Jensen
    Jon Jensen commented at 11:21 PM

    Yeah, confirmed this happens in passenger as well (rails 2.3.2 in my case). When you use the same memcache object for sessions and cache-money, not only do you ...

Friday, August 14 2009
1837 PostgresSQLAdapter#unescape_bytea does not handle "\\" was updated in Ruby on Rails
  • Jon Jensen
    Jon Jensen commented at 1:21 AM

    Sorry, some of my backslashes got mangled (what else is new? ;).

    • Example in bullet point 2 should read obj.col = "lol \\ omg"
    • Initial if statement should read ...
  • Jon Jensen
    Jon Jensen commented at 1:05 AM

    I just repro'd this with edge rails using both postgres and pg. The key here is:

    1. it has to be a bytea column
    2. you have to put a literal backslash in it (e.g obj...