Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.11, 11.0(EOL), 11.1(EOL), 11.2, 11.4, 11.5(EOL)
-
None
Description
Select from view defined as SELECT DATE_FORMAT(..., %h) gives incorrect result. Problem repeats only with option %h (hour with 2 digits between 01-12).
Case:
CREATE VIEW v AS SELECT DATE_FORMAT(TIME'-01:01:01','%h'); |
SELECT * FROM v; |
DROP VIEW v; |
Expected result:
DATE_FORMAT(TIME'-01:01:01','%h') |
-01
|
Actual result:
DATE_FORMAT(TIME'-01:01:01','%h') |
-0
|
Attachments
Issue Links
- relates to
-
MDEV-34215 SELECT DATE_FORMAT(..., %h) gives incorrect result with cursor protocol
- Open
-
MDEV-25542 The last character is truncated when TIME_FORMAT function in the subquery
- Open
-
MDEV-27691 make working view-protocol
- Open