Improve the error messages used to report illegal recursive cte references.
FossilOrigin-Name: 54eee9fe99290e59469bd3e1a66bb749887d37ee
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 43a1a57..3f29f58 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2371,7 +2371,6 @@
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 @@
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];
};