mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user