aboutsummaryrefslogtreecommitdiff
path: root/src/trigger.c
diff options
context:
space:
mode:
authordrh <>2021-08-02 18:03:43 +0000
committerdrh <>2021-08-02 18:03:43 +0000
commitcf9d36d1b3a84fb68d2e13acb790c449bff51c15 (patch)
tree41739e173fe71a4dafba5ffee69002b82a83543a /src/trigger.c
parentf38524d20db165c94dc94e06b62f0aad5942a03b (diff)
downloadsqlite-cf9d36d1b3a84fb68d2e13acb790c449bff51c15.tar.gz
sqlite-cf9d36d1b3a84fb68d2e13acb790c449bff51c15.zip
Refactor field names in the Column object, zCnName and zCnColl, to make them
unique and thus easier to find amid all the other code. FossilOrigin-Name: 8b781dcaf68e0cf12a844708c82eee00193e340195cbca915d077e4846983bf3
Diffstat (limited to 'src/trigger.c')
-rw-r--r--src/trigger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trigger.c b/src/trigger.c
index 4db697c65..d7a4507e8 100644
--- a/src/trigger.c
+++ b/src/trigger.c
@@ -877,11 +877,11 @@ static ExprList *sqlite3ExpandReturning(
for(jj=0; jj<pTab->nCol; jj++){
Expr *pNewExpr;
if( IsHiddenColumn(pTab->aCol+jj) ) continue;
- pNewExpr = sqlite3Expr(db, TK_ID, pTab->aCol[jj].zName);
+ pNewExpr = sqlite3Expr(db, TK_ID, pTab->aCol[jj].zCnName);
pNew = sqlite3ExprListAppend(pParse, pNew, pNewExpr);
if( !db->mallocFailed ){
struct ExprList_item *pItem = &pNew->a[pNew->nExpr-1];
- pItem->zEName = sqlite3DbStrDup(db, pTab->aCol[jj].zName);
+ pItem->zEName = sqlite3DbStrDup(db, pTab->aCol[jj].zCnName);
pItem->eEName = ENAME_NAME;
}
}