aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2017-12-16 19:36:52 +0000
committerdan <dan@noemail.net>2017-12-16 19:36:52 +0000
commitebeffef36c5ad0e855cd208cc39989fc33511a6c (patch)
treeca101164f8a598d656b52ac5fc580658659e62a4 /src/main.c
parent468c649331dc631a5821adb24083bf5d96dfb9dc (diff)
parent11546779b711ca6ebadc272c735310c583555d98 (diff)
downloadsqlite-ebeffef36c5ad0e855cd208cc39989fc33511a6c.tar.gz
sqlite-ebeffef36c5ad0e855cd208cc39989fc33511a6c.zip
Add the sqlite3_vtab_collation() function, which allows an xBestIndex callback
to determine the collation sequence that SQLite will use for a comparison. And the SQLITE_DBCONFIG_FULL_EQP configuration option, which enhances the output of "EXPLAIN QUERY PLAN" so that it includes statements run by triggers. And the code for the sqlite3_expert extension and command line application. FossilOrigin-Name: 4c782c950204c09c1d8f857c39c4cf476539ec4e7eee6fd86419d47cf0f8b9e0
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c25d3a448..52d3be953 100644
--- a/src/main.c
+++ b/src/main.c
@@ -806,6 +806,21 @@ int sqlite3_db_config(sqlite3 *db, int op, ...){
rc = setupLookaside(db, pBuf, sz, cnt);
break;
}
+ case SQLITE_DBCONFIG_FULL_EQP: {
+ int onoff = va_arg(ap, int);
+ int *pRes = va_arg(ap, int*);
+ if( onoff>0 ){
+ db->bFullEQP = 1;
+ }else if( onoff==0 ){
+ db->bFullEQP = 0;
+ }
+ sqlite3ExpirePreparedStatements(db);
+ if( pRes ){
+ *pRes = db->bFullEQP;
+ }
+ rc = SQLITE_OK;
+ break;
+ }
default: {
static const struct {
int op; /* The opcode */