Skip to content
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

create partition table fail with strconv.ParseInt invalid syntax #16333

Closed
tiancaiamao opened this issue Apr 13, 2020 · 0 comments · Fixed by #16436
Closed

create partition table fail with strconv.ParseInt invalid syntax #16333

tiancaiamao opened this issue Apr 13, 2020 · 0 comments · Fixed by #16436
Assignees
Labels
severity/moderate type/bug The issue is confirmed as a bug.
Milestone

Comments

@tiancaiamao
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. What did you do?

mysql> create table t (dt timestamp) partition by range (unix_timestamp(dt)) (partition p0 values less than (unix_timestamp('2020-04-15 00:00:00')));
ERROR 1105 (HY000): strconv.ParseInt: parsing "unix_timestamp(\"2020-04-15 00:00:00\")": invalid syntax

2. What did you expect to see?

No error

3. What did you see instead?

ERROR 1105 (HY000): strconv.ParseInt

4. What version of TiDB are you using? (tidb-server -V or run select tidb_version(); on TiDB)

10907ce (4.0+)

This bug may also exist on 3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants