Skip to content

autocomplete order should be case insensitive #194

Open
@eiked

Description

@eiked

autocomplete :artist, :name

currently generates sql (using postgres)

SELECT artist.id, artist.name FROM "artist" WHERE (LOWER(artist.name) ILIKE 'test%')
ORDER BY artist.name ASC LIMIT 10

while I believe it should be change to generate:

SELECT artist.id, artist.name FROM "artist" WHERE (LOWER(artist.name) ILIKE 'test%')
ORDER BY LOWER(artist.name) ASC LIMIT 10

aka the order of results should also be based on lowering

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

      autocomplete order should be case insensitive · Issue #194 · crowdint/rails3-jquery-autocomplete