1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Improve the error messages used to report illegal recursive cte references.

FossilOrigin-Name: 54eee9fe99290e59469bd3e1a66bb749887d37ee
This commit is contained in:
dan
2014-01-16 21:02:02 +00:00
parent eae73fbfb9
commit f2655fe8b6
6 changed files with 95 additions and 57 deletions

View File

@@ -2371,7 +2371,6 @@ struct Parse {
Table *pZombieTab; /* List of Table objects to delete after code gen */
TriggerPrg *pTriggerPrg; /* Linked list of coded triggers */
With *pWith; /* Current WITH clause, or NULL */
struct Cte *pCte; /* Current CTE, or NULL */
};
/*
@@ -2650,7 +2649,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 */
struct Cte *pOuterCte; /* Next WITH clause in outer context */
const char *zErr; /* Error message for circular references */
} a[1];
};