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.

Lars Christensen's latest activity

Wednesday, November 05 2008
1309 Backslashes doesn't work in LIKE queries with PostgreSQL adapter was updated in Ruby on Rails
  • Lars Christensen
    Lars Christensen commented at 8:28 AM

    I have realised that LIKE clauses require special escaping of %, _, and . PostgreSQL defaults to having backslash as the escape operator, while SQLite default t...

Friday, October 31 2008
1309 Backslashes doesn't work in LIKE queries with PostgreSQL adapter was created in Ruby on Rails
  • Lars Christensen
    Lars Christensen created the ticket at 12:18 PM

    For example:

    class Resource < ActiveRecord::Base; end Resource.create(:path => "foo\bar\baz") Resource.find(:all, :conditions => [ "resources.path like ?", "%ar...