diff options
author | drh <drh@noemail.net> | 2019-12-12 20:22:34 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-12-12 20:22:34 +0000 |
commit | 41cee66848afe40aba1e4d4a83bd50b6c33aaff0 (patch) | |
tree | d40d1f4dd674e9fc6ee4c0010f55b4fd52f35b74 /src/update.c | |
parent | 0225d819c4ca87cd29cd6f58d50c75bcee6213bc (diff) | |
download | sqlite-41cee66848afe40aba1e4d4a83bd50b6c33aaff0.tar.gz sqlite-41cee66848afe40aba1e4d4a83bd50b6c33aaff0.zip |
Change the name of the Expr.a.zName field to zEName, so that it has a name
that is distinct from other fields and variables and is hence easier to
grep for.
FossilOrigin-Name: d3783357f8fa76c42a86f12b214522f0388c37773c36ab8c5ce0623abbc4436a
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/update.c b/src/update.c index 935e1d937..f4e8f696d 100644 --- a/src/update.c +++ b/src/update.c @@ -305,7 +305,7 @@ void sqlite3Update( goto update_cleanup; } for(j=0; j<pTab->nCol; j++){ - if( sqlite3StrICmp(pTab->aCol[j].zName, pChanges->a[i].zName)==0 ){ + if( sqlite3StrICmp(pTab->aCol[j].zName, pChanges->a[i].zEName)==0 ){ if( j==pTab->iPKey ){ chngRowid = 1; pRowidExpr = pChanges->a[i].pExpr; @@ -327,12 +327,12 @@ void sqlite3Update( } } if( j>=pTab->nCol ){ - if( pPk==0 && sqlite3IsRowid(pChanges->a[i].zName) ){ + if( pPk==0 && sqlite3IsRowid(pChanges->a[i].zEName) ){ j = -1; chngRowid = 1; pRowidExpr = pChanges->a[i].pExpr; }else{ - sqlite3ErrorMsg(pParse, "no such column: %s", pChanges->a[i].zName); + sqlite3ErrorMsg(pParse, "no such column: %s", pChanges->a[i].zEName); pParse->checkSchema = 1; goto update_cleanup; } |