str_to_date
return different result on no zero date sql mode
#39146
Labels
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
affects-6.3
affects-6.4
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
str_to_date(substr(dest,1,6),'%H%i%s') returns
20:23:10
even the sql mode containsNO_ZERO_IN_DATE,NO_ZERO_DATE
3. What did you see instead (Required)
str_to_date(substr(dest,1,6),'%H%i%s') returns
NULL
4. What is your TiDB version? (Required)
master@3765abbd434756b01212d7debf49406456620224
The text was updated successfully, but these errors were encountered: