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.

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
    Kurt Stephens commented at 6:11 AM

    Gah.. that should have been formatted as:

    def cached_value
      (@cached_value ||= [ computed_value ]).first
    end
    def computed_value
      something.that.might.return....
  • Kurt Stephens
    Kurt Stephens commented at 6:10 AM

    We've used patterns like the following to allow caching of computed nil and false results:

    def cached_value

    (@cached_value ||= [ computed_value ]).first
    
    

    end ...

1837 PostgresSQLAdapter#unescape_bytea does not handle "\\" was updated in Ruby on Rails
  • Kurt Stephens
    Kurt Stephens commented at 5:52 AM

    The 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
    Kurt Stephens commented at 1:13 AM

    gem 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...

  • Kurt Stephens
    Kurt Stephens commented at 1:11 AM

    gem list postgres LOCAL GEMS postgres (0.7.9.2008.01.28)

Sunday, February 01 2009
1837 PostgresSQLAdapter#unescape_bytea does not handle "\\" was created in Ruby on Rails
  • Kurt Stephens
    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 ...