Skip to content

Should we change ToUpper-ToLower methods as ToUpperInvariant-ToLowerInvariant methods #281

@kucuk-furkan

Description

@kucuk-furkan

Hello,

We start using SqlKata in out project. I faced an issue in development. My computer's language is English but culture is Turkish. In my machine if i use query.WhereStarts or query.WhereEnds it throws error that "The operator 'lıke' cannot be used. Please consider white listing it before using it". My machine culture is caused it. I can change my machine culture but in production i can't as all customers to change their culture. Although i need their cultures to show datetimes, decimals, floats as their culture settings. Because, you know, EVERY SINGLE COUNTRY uses different date formats (sorry but since the day that i met with datetime object, i'm little angry about this 😄)

If we use ToLowerInvariant(), ToUpperInvariant() in compiler, it wont depend machine culture. Should we change them to invariants?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed_nightlyDeployed in nightly buildverified_next_releaseVerified and will be solved in the next minor release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions