Jon Jensen
Not a member
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 commented at 7:44 PMIn 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
-
- Tag set to activerecord, bug, patch, sqlite
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 commented at 11:21 PMYeah, 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 commented at 1:21 AMSorry, 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
...
- Example in bullet point 2 should read
-
Jon Jensen commented at 1:05 AMI just repro'd this with edge rails using both postgres and pg. The key here is:
- it has to be a bytea column
- you have to put a literal backslash in it (e.g obj...