1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Make sure the rowid of an RTREE virtual table has integer affinity.

Ticket [9fe487ba3c064b4e]

FossilOrigin-Name: 7ae8c0d52f6aa7f27537216f85456ef49dade040366cfb250c789206ecd4dc5a
This commit is contained in:
drh
2019-12-05 14:42:26 +00:00
parent e6dc1e5b70
commit cb224ab139
4 changed files with 11 additions and 11 deletions

View File

@ -3726,7 +3726,7 @@ static int rtreeInit(
** the r-tree table schema.
*/
pSql = sqlite3_str_new(db);
sqlite3_str_appendf(pSql, "CREATE TABLE x(%s", argv[3]);
sqlite3_str_appendf(pSql, "CREATE TABLE x(%s INT", argv[3]);
for(ii=4; ii<argc; ii++){
if( argv[ii][0]=='+' ){
pRtree->nAux++;