La fonction SQL "substr" a pour syntaxe substr(chaine,debut,longueur), avec debut >= 1. Mais que se passe-t-il si on prend 0 comme début ?

Avant :

$ sqlite3
SQLite version 3.3.6
Enter ".help" for instructions
sqlite> select substr('ABCD',1,2);
AB
sqlite> select substr('ABCD',0,2);
AB
sqlite> select substr('ABCD',0,1);
A
sqlite>

Maintenant :

$ sqlite3
SQLite version 3.6.12
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select substr('ABCD',1,2);
AB
sqlite> select substr('ABCD',0,2);
A
sqlite> select substr('ABCD',0,1);

sqlite>

Le nouveau comportement est apparemment plus conforme, mais provoque le plantage de repoview.

Un fois le problème compris, la correction est trivial.

Voir : Bug #498752

Allez, MrIcon, au boulot ;)