-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
default value caused data missing #609
Comments
Thanks for your report, @elvizlai |
@ngaut sorry, i mis-touched my ''Enter" key. testing code:
|
Have you commit your transaction ? |
@elvizlai I tested your code with and then check the db with interpreter tool(mv data dir to interpreter dir and start interpreter). |
@shenli you are right. It seems that engine.InsertOne autocommit not work when db already exist.(U can run that code twice, but only one line data inserted). I tried using session to commit, and it succeed. I not very sure what caused this issue. |
…ngcap#609) TiDB ignores the TEMPORARY keyword in "CREATE/DROP TEMPORARY TABLE" statements. Report errors when and only when tidb_enable_noop_functions = OFF.
…) (#22860) * planner: include "CREATE/DROP TEMPORARY TABLE" to noop functions (##609) TiDB ignores the TEMPORARY keyword in "CREATE/DROP TEMPORARY TABLE" statements. Report errors when and only when tidb_enable_noop_functions = OFF. * Add link to pingcap/parser issue Co-authored-by: bb7133 <[email protected]> Co-authored-by: bb7133 <[email protected]> Co-authored-by: Morgan Tocker <[email protected]>
Signed-off-by: [email protected] <[email protected]>
sorry,the title should be default value caused data missing
1、using goleveldb
2、a column name Pv defined as ``pv
BIGINT(20) NULL DEFAULT 1
3、it insert succeed
4、restart db,all data inserted are missing
The text was updated successfully, but these errors were encountered: