This is already fixed on Rails 4.0

On Feb 22, 2013, at 4:26 PM, Panayotis Matsinopoulos wrote:

> Hi,
> 
> According to http://guides.rubyonrails.org/active_record_querying.html, 
> "first" does not use "ORDER BY ID" to bring the first record. Whereas "last" 
> does.
> I find this inconsistent. I can also say that this is buggy on MySQL. 
> "....limit 1" does not always bring the record with the minimum id. I can 
> link you to the following that
> verifies my statement: 
> http://forums.mysql.com/read.php?22,530328,530328#msg-530328
> 
> Do you think that you can change "first" to be consistent with "last" (that 
> does the order by id desc)?
> 
> BR
> Panayotis
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

Cumprimentos,
Luís Ferreira



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to