[MDEV-5459] Illegal mix of collations for datetime Created: 2013-12-17 Updated: 2014-04-28 Resolved: 2014-04-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.33a, 5.5.34 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Ekaterina Shemaeva | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS release 6.4 - 5.5.34-MariaDB-log |
||
| Description |
|
To reproduce the problem:
Set character and collation to cp1251:
Query:
return the error:
If I return configuration to UTF8, all work fine:
|
| Comments |
| Comment by Alexander Barkov [ 2013-12-17 ] |
|
Please use this query as a workaround: SELECT date(t1_date) FROM t1 WHERE (CASE WHEN 1 THEN date(t1_date) ELSE null END >= TIMESTAMP('2013-12-01 00:00:00')); |
| Comment by Alexander Barkov [ 2013-12-17 ] |
|
This is a script to repeat the problem: SET NAMES cp1251; |
| Comment by Alexander Barkov [ 2013-12-17 ] |
|
The problem is not repeatable in 5.3. The patch for |
| Comment by Alexander Barkov [ 2014-04-28 ] |
|
Pushed into 5.5. |