diff options
author | drh <drh@noemail.net> | 2018-11-05 23:01:45 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-11-05 23:01:45 +0000 |
commit | 84c501bac16576916840daffb671b72cf1f75625 (patch) | |
tree | 46dec0ac65957e550787f4137ffba3fd31accf0c /ext/misc/json1.c | |
parent | 2d13f6016b4d7fa7b6618a2d79594cb5111f929d (diff) | |
download | sqlite-84c501bac16576916840daffb671b72cf1f75625.tar.gz sqlite-84c501bac16576916840daffb671b72cf1f75625.zip |
Initial code to make shadow tables read-only to ordinary SQL. The now
xShadowName method is added to the sqlite3_module object and is used
to identify potential shadow tables. The SQLITE_PREPARE_SHADOW argument
to sqlite3_prepare_v3() is defined. It is designed to permit writing to
shadow tables, but is currently an unused placeholder.
FossilOrigin-Name: 31942b3dd3f66eb0d9977bf1cadc2f2d7be7967cce2b55784be0b939dfef1985
Diffstat (limited to 'ext/misc/json1.c')
-rw-r--r-- | ext/misc/json1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/misc/json1.c b/ext/misc/json1.c index 85b1143f8..7cff3d28d 100644 --- a/ext/misc/json1.c +++ b/ext/misc/json1.c @@ -2388,7 +2388,8 @@ static sqlite3_module jsonEachModule = { 0, /* xRename */ 0, /* xSavepoint */ 0, /* xRelease */ - 0 /* xRollbackTo */ + 0, /* xRollbackTo */ + 0 /* xShadowName */ }; /* The methods of the json_tree virtual table. */ @@ -2415,7 +2416,8 @@ static sqlite3_module jsonTreeModule = { 0, /* xRename */ 0, /* xSavepoint */ 0, /* xRelease */ - 0 /* xRollbackTo */ + 0, /* xRollbackTo */ + 0 /* xShadowName */ }; #endif /* SQLITE_OMIT_VIRTUALTABLE */ |