diff options
author | drh <drh@noemail.net> | 2015-11-24 21:23:59 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-11-24 21:23:59 +0000 |
commit | 8b4a94adc1dea3254a7eed1e33c210509c496e2d (patch) | |
tree | fcc90ca3de6ae8a10e20ee885682b4a7e9194449 /src/sqlite3ext.h | |
parent | ff7b22b714eb6202412b7b0aa5bc81fdbaad43c0 (diff) | |
download | sqlite-8b4a94adc1dea3254a7eed1e33c210509c496e2d.tar.gz sqlite-8b4a94adc1dea3254a7eed1e33c210509c496e2d.zip |
Add the sqlite3_strlike() interface, which might be useful for implementing
LIKE operators on virtual tables.
FossilOrigin-Name: e70ec71d6883f2f8fc75301ff985bccb5aa06127
Diffstat (limited to 'src/sqlite3ext.h')
-rw-r--r-- | src/sqlite3ext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sqlite3ext.h b/src/sqlite3ext.h index 017ea308b..3029a82fa 100644 --- a/src/sqlite3ext.h +++ b/src/sqlite3ext.h @@ -275,6 +275,8 @@ struct sqlite3_api_routines { /* Version 3.9.0 and later */ unsigned int (*value_subtype)(sqlite3_value*); void (*result_subtype)(sqlite3_context*,unsigned int); + /* Version 3.10.0 and later */ + int (*strlike)(const char*,const char*,unsigned int); }; /* @@ -514,6 +516,8 @@ struct sqlite3_api_routines { /* Version 3.9.0 and later */ #define sqlite3_value_subtype sqlite3_api->value_subtype #define sqlite3_result_subtype sqlite3_api->result_subtype +/* Version 3.10.0 and later */ +#define sqlite3_strlike sqlite3_api->strlike #endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */ #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) |