Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

How to deal with case sensitivity varying depending on rdbms used? #237

Open

Description

@crantok

I just experienced a behaviour difference between my development and staging apps and would like to know whether I can change this.

I am (probably inadvisedly) using different rdbms on development (sqlite) and staging (mysql). Retrieving a row using the following code

User.first( login: params[:to] )

where login is a string, returned nil with sqlite and a valid User object with mysql. In both cases, the search string params[:to] was incorrectly cased.

Is there any way to

  • specifiy case-sensitivity at comparison, or
  • specify case-sensitivity at table creation, or
  • specify case-sensitivity globally?

I saw issue #97 but as that was two years ago so I thought I'd just check.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions