aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-08-26 11:40:11 +0000
committerdrh <drh@noemail.net>2015-08-26 11:40:11 +0000
commit0576bc59a730c57f14f037dc90a28d0a7ec2d51f (patch)
treefc46ca6f2a9a9e869e1ac7e09f1097e8954b81d8 /src
parent1c4505de91f059bcfab8b59395455010581d43fb (diff)
downloadsqlite-0576bc59a730c57f14f037dc90a28d0a7ec2d51f.tar.gz
sqlite-0576bc59a730c57f14f037dc90a28d0a7ec2d51f.zip
Refactor With.a.zErr into With.a.zCteErr. No logic changes.
FossilOrigin-Name: 58ba73630ecc4bc58b03a7962dd45b305ef605ef
Diffstat (limited to 'src')
-rw-r--r--src/build.c2
-rw-r--r--src/select.c16
-rw-r--r--src/sqliteInt.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/build.c b/src/build.c
index ae602378f..0960d0cbd 100644
--- a/src/build.c
+++ b/src/build.c
@@ -4349,7 +4349,7 @@ With *sqlite3WithAdd(
pNew->a[pNew->nCte].pSelect = pQuery;
pNew->a[pNew->nCte].pCols = pArglist;
pNew->a[pNew->nCte].zName = zName;
- pNew->a[pNew->nCte].zErr = 0;
+ pNew->a[pNew->nCte].zCteErr = 0;
pNew->nCte++;
}
diff --git a/src/select.c b/src/select.c
index 2581a240e..dbf06dd9a 100644
--- a/src/select.c
+++ b/src/select.c
@@ -4053,12 +4053,12 @@ static int withExpand(
int bMayRecursive; /* True if compound joined by UNION [ALL] */
With *pSavedWith; /* Initial value of pParse->pWith */
- /* If pCte->zErr is non-NULL at this point, then this is an illegal
+ /* If pCte->zCteErr is non-NULL at this point, then this is an illegal
** recursive reference to CTE pCte. Leave an error in pParse and return
- ** early. If pCte->zErr is NULL, then this is not a recursive reference.
+ ** early. If pCte->zCteErr is NULL, then this is not a recursive reference.
** In this case, proceed. */
- if( pCte->zErr ){
- sqlite3ErrorMsg(pParse, pCte->zErr, pCte->zName);
+ if( pCte->zCteErr ){
+ sqlite3ErrorMsg(pParse, pCte->zCteErr, pCte->zName);
return SQLITE_ERROR;
}
@@ -4103,7 +4103,7 @@ static int withExpand(
}
assert( pTab->nRef==1 || ((pSel->selFlags&SF_Recursive) && pTab->nRef==2 ));
- pCte->zErr = "circular reference: %s";
+ pCte->zCteErr = "circular reference: %s";
pSavedWith = pParse->pWith;
pParse->pWith = pWith;
sqlite3WalkSelect(pWalker, bMayRecursive ? pSel->pPrior : pSel);
@@ -4124,13 +4124,13 @@ static int withExpand(
sqlite3ColumnsFromExprList(pParse, pEList, &pTab->nCol, &pTab->aCol);
if( bMayRecursive ){
if( pSel->selFlags & SF_Recursive ){
- pCte->zErr = "multiple recursive references: %s";
+ pCte->zCteErr = "multiple recursive references: %s";
}else{
- pCte->zErr = "recursive reference in a subquery: %s";
+ pCte->zCteErr = "recursive reference in a subquery: %s";
}
sqlite3WalkSelect(pWalker, pSel);
}
- pCte->zErr = 0;
+ pCte->zCteErr = 0;
pParse->pWith = pSavedWith;
}
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index a57f00afb..867a608ec 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3030,7 +3030,7 @@ struct With {
char *zName; /* Name of this CTE */
ExprList *pCols; /* List of explicit column names, or NULL */
Select *pSelect; /* The definition of this CTE */
- const char *zErr; /* Error message for circular references */
+ const char *zCteErr; /* Error message for circular references */
} a[1];
};