aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-01-03 02:20:37 +0000
committerdrh <drh@noemail.net>2020-01-03 02:20:37 +0000
commit0cbec59c8bbaa2e2ddf13928441d68b28a9aa3d0 (patch)
tree3d75061431bac9fbbb2f9cf60866fcfe05ce97e4 /src/sqliteInt.h
parente1f49b88501363222a3f13c25c1ec4e08150811b (diff)
downloadsqlite-0cbec59c8bbaa2e2ddf13928441d68b28a9aa3d0.tar.gz
sqlite-0cbec59c8bbaa2e2ddf13928441d68b28a9aa3d0.zip
When generating the name of a view (or common table expression) because the
SQL does not specify a name, avoid the names "true" and "false" which might be confused for the boolean literals of the same name, leading to an inconsistent abstract syntax tree. FossilOrigin-Name: ff9492d3ff733c222ea67f23d478df1547641b5e2e6dd870b0b29e25c13f3739
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index d936b2c30..bab9fba4a 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -4249,6 +4249,7 @@ void sqlite3EndTransaction(Parse*,int);
void sqlite3Savepoint(Parse*, int, Token*);
void sqlite3CloseSavepoints(sqlite3 *);
void sqlite3LeaveMutexAndCloseZombie(sqlite3*);
+u32 sqlite3IsTrueOrFalse(const char*);
int sqlite3ExprIdToTrueFalse(Expr*);
int sqlite3ExprTruthValue(const Expr*);
int sqlite3ExprIsConstant(Expr*);