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.

awendt's latest activity

Saturday, August 08 2009
2883 Diacritics break validates_uniqueness_of on MySQL was updated in Ruby on Rails
  • awendt
    awendt commented at 6:55 PM

    Leandro, neither you nor Kirk have responded how many records you get with these two statements:


    mysql> SELECT
    people.id FROM people WHERE (people.name = BINAR...

Friday, July 17 2009
2883 Diacritics break validates_uniqueness_of on MySQL was updated in Ruby on Rails
  • awendt
    awendt commented at 9:24 PM

    This is weird, to say the least:

    
    $ sc
    Loading development environment (Rails 2.3.2)
    >> Person.find(:all)
    => []
    >> p1=Person.new(:name=>'Joe')
    => #
    >> p1.save
    ...
Monday, July 13 2009
2883 Diacritics break validates_uniqueness_of on MySQL was updated in Ruby on Rails
  • awendt
    • Title changed from validates_uniqueness_of fails with diacritics on MySQL to Diacritics break validates_uniqueness_of on MySQL
    by awendt at 7:32 PM
Thursday, July 09 2009
2883 validates_uniqueness_of fails with diacritics on MySQL was updated in Ruby on Rails
  • awendt
    awendt commented at 8:30 AM

    Maybe I wasn't quite clear. The strange behavior is that the validation actually passes.

    If I already have that value in the DB, I expect to get a validation er...

Wednesday, July 08 2009
2883 validates_uniqueness_of fails with diacritics on MySQL was created in Ruby on Rails
  • awendt
    awendt created the ticket at 1:26 PM

    Consider this Person model on Rails 2.3.2:

    class Person < ActiveRecord::Base

    validates_uniqueness_of :name

    end

    This lets me create two people with the name 'and...

Saturday, December 27 2008
1651 Sqlite, sqlite3 bug in add_column when column is primary key (Trac #9385) was created in Ruby on Rails
Wednesday, December 03 2008
1511 Option :case_sensitive for validates_exclusion_of was updated in Ruby on Rails
  • awendt
    awendt commented at 8:43 AM

    The code can be reviewed at http://github.com/awendt/rails/c...

  • awendt
    awendt commented at 8:32 AM

    Please bear with me, I noticed I've attached the reverse patch. Here is the correct one.

  • awendt
    awendt created the ticket at 8:29 AM

    Wherever you look, the example for uses of validates_exclusion_of is to reserve usernames. I recently found out that validates_exclusion_of is case sensitive: W...