-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract
result incompatible with mysql
#27236
Comments
other case: mysql> select extract(minute_microsecond from '2018-02-01');
Field 1: `extract(minute_microsecond from '2018-02-01')`
Catalog: `def`
Database: ``
Table: ``
Org_table: ``
Type: LONGLONG
Collation: binary (63)
Length: 11
Max_length: 10
Decimals: 0
Flags: BINARY NUM
+-----------------------------------------------+
| extract(minute_microsecond from '2018-02-01') |
+-----------------------------------------------+
| 2018000000 |
+-----------------------------------------------+
1 row in set, 1 warning (0.03 sec) tidb: mysql> select extract(minute_microsecond from '2018-02-01');
Field 1: `extract(minute_microsecond from '2018-02-01')`
Catalog: `def`
Database: ``
Table: ``
Org_table: ``
Type: LONGLONG
Collation: binary (63)
Length: 20
Max_length: 0
Decimals: 0
Flags: NOT_NULL BINARY NUM
+-----------------------------------------------+
| extract(minute_microsecond from '2018-02-01') |
+-----------------------------------------------+
| NULL |
+-----------------------------------------------+
1 row in set, 1 warning (0.04 sec) |
Looks like a different problem, and this one is not as serious as above. Maybe we can record this problem in another issue. |
open new issue #27333 to trace this. |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
v5.0.3, v4.0.14,
master: da8bb5e
release-5.2.0: 4c68def
The text was updated successfully, but these errors were encountered: