SQLite out of order error备忘

Posted seebigsea

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQLite out of order error备忘相关的知识,希望对你有一定的参考价值。

Talk is cheap, show me the code:

sqlite> create table t(id integer primary key);
sqlite> insert or ignore into dst values (10),(null),(13),(12);
sqlite> select * from t;
10
11
13
12
sqlite> pragma integrity_check;
*** in database main ***
On tree page 3 cell 3: Rowid 12 out of order (previous was 13)

 

有兴趣的朋友可以找几个版本的代码试试,看看能否复现这个问题。

官方的tcl测试还是要认真做的,有利于快速排除干扰信息,准确定位问题。

不直接给出解决办法,是为了脑子里始终能有个声音提醒自己不要忘了调试的过程。

 

备注:aHR0cCUzQS8vd3d3LmNuYmxvZ3MuY29tL3poaGQv

 

以上是关于SQLite out of order error备忘的主要内容,如果未能解决你的问题,请参考以下文章