Edgewall Software

Ticket #4363 (closed defect: fixed)

Opened 21 months ago

Last modified 6 months ago

in PostgreSQL equality ("X = Y") is case-sensitive

Reported by: wkornewald Owned by: jonas
Priority: high Milestone: 0.11
Component: ticket system Version: 0.10.2
Severity: normal Keywords:
Cc:

Description

In the query dialog, string comparison is case-sensitive, so when you search for summaries containing "postgresql" you won't get results with "PostgreSQL", for example. For PostgreSQL it would be better to use the lower() function when doing exact matches and use case-insensitive altenatives where possible (e.g: ILIKE instead of LIKE).

Attachments

Change History

  Changed 21 months ago by jonas

  • status changed from new to assigned
  • milestone changed from 0.10.4 to 0.11

Yes, it appears like the query module doesn't use the like() and like_escape() methods provided by the db connectin api.

  Changed 21 months ago by jonas

r4435 fixes one bug where the "contains", "begins with", "ends with" query filters were case-sensitive on postgresql but insensitive on sqlite and mysql.

The "is" and "is not" operations however are still always case-sensitive. Should we change this behavior?

  Changed 21 months ago by cboos

I think it's ok like that, as "is" suggests exact match.

follow-up: ↓ 5   Changed 21 months ago by jonas

  • status changed from assigned to closed
  • resolution set to fixed

Ok, then I'll resolve this ticket as fixed.

in reply to: ↑ 4   Changed 6 months ago by Leandro Conde <leandor AT gmail>

Replying to jonas:

Ok, then I'll resolve this ticket as fixed.

Could this solution be extended also to the session table sid string?

Add/Change #4363 (in PostgreSQL equality ("X = Y") is case-sensitive)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.