1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Ignore type affinity for auxiliary columns in RTREE as it is too error-prone

to try to parse out the type from other constraints.
Ticket [8bf76328ac940d52]

FossilOrigin-Name: 7fa664ea0ea1e0283a9af50c9ff8dd360ee6042f9e491a136f53d9bcbbc9c7ef
This commit is contained in:
drh
2019-12-07 12:13:54 +00:00
parent 7fe2fc0dcb
commit c7a046e282
3 changed files with 8 additions and 8 deletions

View File

@ -3741,7 +3741,7 @@ static int rtreeInit(
const char *zArg = argv[ii];
if( zArg[0]=='+' ){
pRtree->nAux++;
sqlite3_str_appendf(pSql, ",%s", zArg+1);
sqlite3_str_appendf(pSql, ",%.*s", rtreeTokenLength(zArg+1), zArg+1);
}else if( pRtree->nAux>0 ){
break;
}else{