matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Bug]: set autocommit=0; prepare execute drop table: a reasonable error message should be displayed.

Open tianyahui-python opened this issue 3 years ago • 0 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

mysql> set autocommit=0; Query OK, 0 rows affected (0.00 sec)

mysql> prepare s7 from 'drop table user'; Query OK, 0 rows affected (0.01 sec)

mysql> execute s7; ERROR 20101 (HY000): internal error: panic runtime error: invalid memory address or nil pointer dereference: runtime.panicmem /usr/local/go/src/runtime/panic.go:260 runtime.sigpanic /usr/local/go/src/runtime/signal_unix.go:835 github.com/matrixorigin/matrixone/pkg/sql/plan.(*VisitPlan).Visit /Users/tianyahui/work_code/go/matrixone/pkg/sql/plan/visit_plan.go:123 github.com/matrixorigin/matrixone/pkg/frontend.(*TxnComputationWrapper).Compile /Users/tianyahui/work_code/go/matrixone/pkg/frontend/mysql_cmd_executor.go:1704 git mysql> deallocate prepare s7; Query OK, 0 rows affected (0.00 sec)

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

tianyahui-python avatar Oct 12 '22 04:10 tianyahui-python