1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

Create a new datatype "ynVar" to hold "nVar" (number of variable) values.

This is normally 16-bits can can be 32-bits if SQLITE_MAX_VARIABLE_NUMBER
is large enough.

FossilOrigin-Name: 24a4d520d540d92b611abc4eb57dc6da9be4eac6
This commit is contained in:
drh
2009-11-04 13:17:14 +00:00
parent e68e8c58c9
commit 8677d30812
7 changed files with 37 additions and 46 deletions

View File

@@ -407,11 +407,7 @@ Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
if( p->pTab->iPKey==iCol ){
p->iColumn = -1;
}else{
#if SQLITE_MAX_VARIABLE_NUMBER<=32767
p->iColumn = (i16)iCol;
#else
p->iColumn = iCol;
#endif
p->iColumn = (ynVar)iCol;
pItem->colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
}
ExprSetProperty(p, EP_Resolved);