diff options
author | drh <drh@noemail.net> | 2018-10-31 19:01:13 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-10-31 19:01:13 +0000 |
commit | a60c63013ef1d02e7d63ee9b3951fec4555882da (patch) | |
tree | 71f2c660fb0d8b9f57f320ab4b0d5eeef06019b0 /src/expr.c | |
parent | f8181eaa20cba608a7d02f41368abee21dccbe84 (diff) | |
parent | 8bee11a41ef9a90f8c9046db725dcf962700127c (diff) | |
download | sqlite-a60c63013ef1d02e7d63ee9b3951fec4555882da.tar.gz sqlite-a60c63013ef1d02e7d63ee9b3951fec4555882da.zip |
Add support for the SQLITE_PREPARE_NORMALIZED flag and the
sqlite3_normalized_sql() when compiling with SQLITE_ENABLE_NORMALIZE.
Also remove unnecessary whitespace from Makefiles.
FossilOrigin-Name: 790ea39a6585ea9f4dad9e132e1fb0447ac1558f728196580d2c3edee84823f7
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index b2854f9a5..9c0ce1f87 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2149,6 +2149,14 @@ int sqlite3IsRowid(const char *z){ if( sqlite3StrICmp(z, "OID")==0 ) return 1; return 0; } +#ifdef SQLITE_ENABLE_NORMALIZE +int sqlite3IsRowidN(const char *z, int n){ + if( sqlite3StrNICmp(z, "_ROWID_", n)==0 ) return 1; + if( sqlite3StrNICmp(z, "ROWID", n)==0 ) return 1; + if( sqlite3StrNICmp(z, "OID", n)==0 ) return 1; + return 0; +} +#endif /* ** pX is the RHS of an IN operator. If pX is a SELECT statement |