H2 In a memory database processing ORDER BY differently in MySQL mode

I have a query that executes ORDER BYin a VARCHAR column that contains email addresses.

If I hit my physical MySQL db, it ignores case in ORDER BY. However, my h2 in DB memory is case-sensitive. It is set to MySQL mode.

Does anyone know why this is?

+5
source share
3 answers

Case sensitivity when evaluating rows in databases is determined by matching.

Check H2 sorting processing: http://www.h2database.com/html/grammar.html#set_collation

+5

, SET IGNORECASE TRUE. , .

, MySQL H2 , - : H2 , ( ). , ( ).

+2

Use VARCHAR_IGNORECASEinstead VARCHAR.

Link

0
source

All Articles