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

connection disconnected when select * from t as of timestamp NULL #33728

Closed
lcwangchao opened this issue Apr 6, 2022 · 0 comments · Fixed by #33729
Closed

connection disconnected when select * from t as of timestamp NULL #33728

lcwangchao opened this issue Apr 6, 2022 · 0 comments · Fixed by #33729
Labels
severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@lcwangchao
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int);
select * from t as of timestamp NULL;

2. What did you expect to see? (Required)

Error, but connection should not disconnect

3. What did you see instead (Required)

The connection disconnected and have an internal error:

mysql> select * from t as of timestamp NULL;
ERROR 1105 (HY000): interface conversion: interface {} is nil, not types.Time

4. What is your TiDB version? (Required)

master

mysql> select tidb_version();
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                                                                                   |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v6.0.0-alpha
Edition: Community
Git Commit Hash: 9fcc6b090b02c8351aba4ee8a7f072e0e0c840e0
Git Branch: heads/refs/tags/v6.0.0-alpha
UTC Build Time: 2022-03-13 14:52:09
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)

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

Successfully merging a pull request may close this issue.

1 participant