Kurt Stephens
Not a member
Kurt Stephens's latest activity
Thursday, May 07 2009
2549
memoize fails to handle default parameter = false
was updated
in Ruby on Rails
-
Kurt Stephens commented at 6:11 AMGah.. that should have been formatted as:
def cached_value (@cached_value ||= [ computed_value ]).first end def computed_value something.that.might.return....
-
Kurt Stephens commented at 6:10 AMWe've used patterns like the following to allow caching of computed nil and false results:
def cached_value
(@cached_value ||= [ computed_value ]).firstend ...
1837
PostgresSQLAdapter#unescape_bytea does not handle "\\"
was updated
in Ruby on Rails
-
Kurt Stephens commented at 5:52 AMThe real issue is to let whatever PG client libary Rails is using do the job of quoting and unquoting data. There's no good reason for quoting rules to be handl...
Thursday, February 12 2009
1837
PostgresSQLAdapter#unescape_bytea does not handle "\\"
was updated
in Ruby on Rails
-
Kurt Stephens commented at 1:13 AMgem list --remote postgres REMOTE GEMS postgres (0.7.9.2008.01.28) postgres-pr (0.5.1)
The issue is not with the postgres gem. The hacked-up test for checking...
-
Sunday, February 01 2009
1837
PostgresSQLAdapter#unescape_bytea does not handle "\\"
was created
in Ruby on Rails
-
Kurt Stephens created the ticket at 4:07 PM"\" is a valid PostgreSQL escape for a literal backslash. This causes very serious data round-trip problems.
The fix is to let the PostgreSQL client lib do the ...