diff options
author | mistachkin <mistachkin@noemail.net> | 2018-10-29 17:53:23 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2018-10-29 17:53:23 +0000 |
commit | 8bee11a41ef9a90f8c9046db725dcf962700127c (patch) | |
tree | bf451e5b6610a94dc20ae737b96411cceabecf31 /src/expr.c | |
parent | dbe7d37ae8e69a1e5252dca2c83badb471ff1310 (diff) | |
download | sqlite-8bee11a41ef9a90f8c9046db725dcf962700127c.tar.gz sqlite-8bee11a41ef9a90f8c9046db725dcf962700127c.zip |
Add the sqlite3_normalized_sql() API.
FossilOrigin-Name: 592b66e8058dd03a056a036e2606247c9efdb06d15eebe9bcc455f7f55e30ae6
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 |