New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Fixnum values to be quoted #192

Closed
wants to merge 1 commit into
base: master
from
Commits on Jun 27, 2013
  1. Allow Fixnum values to be quoted

    Neeraj Singh
    Neeraj Singh committed Jun 27, 2013
    Currently `User.where(id: '10')` would result in query where the
    value is integer 10 instead of string 10. That's because id column is
    of type 'Integer`.
    
    However `User.where(name: 10)` would not result in value in string even
    though name column is of type 'String'.
    
    This PR allows "Fixnum" to be quoted so that in ActiveRecord proper
    quoting can be done based on column type.