drh
175b8f06f7
Remove support for STAT3. The sqlite_stat3 tables are ignored, if they
...
exist. STAT4 continues to work as it always has, and as it is a superset of
STAT3 is the recommended replacement.
FossilOrigin-Name: 1e17ea2fd1df4ad49138c787c8fe3207dd0c25c93f9001d52a9b69f8c12e841c
2019-08-08 15:24:17 +00:00
dan
85c6892aa4
Fix a compilation issue in the "userauth" extension. Also fix a few test
...
script errors that occur with SQLITE_USER_AUTHENTICATION=1 builds.
FossilOrigin-Name: 221f3f572ed49d7af69a2e7c88741fa5206ea33ca59ee791eac7698bdd11ca4d
2018-09-19 17:09:09 +00:00
dan
1041a6a817
Fix a problem in ALTER TABLE with SQLITE_OMIT_VIRTUALTABLE builds.
...
FossilOrigin-Name: fa835145e63749e06e04bd50ff992afaeae05dcdd1df597d13911f944e62076b
2018-09-06 17:47:09 +00:00
drh
0d019b9243
Invoke the authorizer for ALTER TABLE RENAME COLUMN.
...
FossilOrigin-Name: fc293bcb3402f049fb9e22aacfb4fdcd13f8609edf29c97d6cb95ce351363873
2018-08-25 16:14:46 +00:00
dan
ee3333b202
Add another test case for the new authorizer functionality.
...
FossilOrigin-Name: 339df63f4064f3b9c8d4e8b82e72d00b49d9406bc350b14809a4caf7ddc4b736
2017-05-11 19:09:19 +00:00
drh
9418921c59
New requirements marks and documentation for the authorizer.
...
FossilOrigin-Name: 3980ea0911b3ad3f86d7a7bdc6503f233315c274f473e18831e13eda2c238eeb
2017-05-11 13:43:57 +00:00
drh
701caf1eb1
Invoke the SQLITE_READ authorizer callback with a NULL column name for any
...
table referenced by a query but from when no columns are extracted.
FossilOrigin-Name: 92ab1f7257d2866c69eaaf4cf85990677b911ef425e9c5a36a96978cccfb551c
2017-05-10 16:12:00 +00:00
drh
e0a04a36a6
All temp.sqlite_master to be used as an alias for sqlite_temp_master.
...
FossilOrigin-Name: 8d646905b830d5bb29092e103ac5cb499b3c7e5a
2016-12-16 01:00:21 +00:00
dan
455684a036
Test that the view name is passed to the authorization callback when a SELECT statement is run on a view.
...
FossilOrigin-Name: 8627a4cd6d64bd076b56c1e8ccc3b1dfc1b4c07d
2016-04-04 16:40:44 +00:00
drh
32c6a48b5e
Add support for the extra parameter on the sqlite3_set_authorizer() callback
...
and support for failing an ATTACH with an authentication-required database
using bad credentials. The extension is now feature complete, but much
testing and bug-fixing remains.
FossilOrigin-Name: 596e728b0eb19a34c888e33d4d37978ca2bf1e00
2014-09-11 13:44:52 +00:00
drh
65a2aaa633
Add the ability for the authorizer callback to disallow recursive
...
queries.
FossilOrigin-Name: 9efc120a1548c03f3d8aabbadf1050ff2a119c31
2014-01-16 22:40:02 +00:00
dan
8ad169abb4
If ENABLE_STAT3 is defined but ENABLE_STAT4 is not, have ANALYZE create and populate the sqlite_stat3 table instead of sqlite_stat4.
...
FossilOrigin-Name: cca8bf4372ab7a0258aa5c9397818415c6cf0abf
2013-08-12 20:14:04 +00:00
dan
f52bb8d385
Begin adding experimental sqlite_stat4 table. This commit is buggy.
...
FossilOrigin-Name: 2beea303a1d609cd2ff252412c50b966b9e5e8f1
2013-08-03 20:24:58 +00:00
drh
2722898c6c
Make sure the authorizer callback gets a valid pointer to "ROWID" for the
...
column-name parameter when doing an UPDATE that changes the rowid.
Fix for ticket [0eb70d77cb05bb2272].
FossilOrigin-Name: 26a59bb88d4082758eb281b365b57f9a0c059d89
2013-05-06 13:22:50 +00:00
dan
6d235cb8d8
Fix a problem with resolving "db.view.column" references that appear in UPDATE or DELETE statements executed against views.
...
FossilOrigin-Name: ddee56c9b2b591b9386b1072c3b3a699f7c1f853
2013-03-09 14:40:24 +00:00
drh
74e7c8f51f
Purge lingering references to SQLITE_STAT2 from the code and test scripts.
...
FossilOrigin-Name: aed2bf7a3c828a7191389b3f8235a9387977b476
2011-10-21 19:06:32 +00:00
drh
faacf17cc1
Begin a branch that experimentally replaces sqlite_stat2 with a new table
...
called sqlite_stat3 that will hopefully facilitate better query
planning decisions.
FossilOrigin-Name: 52e1d7e8ddd4bb5ef3a9d00fd2d719a8a784f807
2011-08-12 01:51:45 +00:00
drh
0097eb3942
Fix the ATTACH command so that the filename argument can be any expression
...
and so that if authorizer callback gets a NULL pointer for the filename
if the filename argument is anything other than a string literal.
Ticket [9013e13dba5b58c7]
FossilOrigin-Name: e64e1453a9c204d93de1af92dc0b3ca26762b024
2011-02-04 00:51:16 +00:00
drh
155640552b
Enhance the ANALYZE command so that it gathers statistics in the sqlite_stat1
...
table even for tables that are empty or have no indices.
FossilOrigin-Name: a7645d293801da64a7579737d0a8b48117af2e2c
2010-09-25 22:32:56 +00:00
dan
1da40a381f
Check in implementation of foreign key constraints.
...
FossilOrigin-Name: d5d399811876391642937edeb9e8434dd9e356f5
2009-09-19 17:00:31 +00:00
dan
2bd935168e
Fix some authorization callback problems.
...
FossilOrigin-Name: 8a746fbfd51f70f56e25ade59df49d2dc03c131c
2009-08-31 08:22:46 +00:00
dan
69188d9a66
Add the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the stat2 table is not created, populated, or used.
...
FossilOrigin-Name: 362665e89c21fd603d9f8ad6c0ead590e885af7c
2009-08-19 08:18:32 +00:00
dan
02fa469619
First version of sqlite_stat2 (schema forces exactly 10 samples).
...
FossilOrigin-Name: dd96bda2a85c1d94fb4a0bf5f27e2977f7f7e42e
2009-08-17 17:06:58 +00:00
danielk1977
34acdc9573
Fix to sqlite3AuthRead to accommodate "new" or "old" references that are used in a context where a column reference may also be used (i.e. "SELECT new.<col> FROM <tble>"). Ticket #3944 . (CVS 6838)
...
FossilOrigin-Name: 45fd5419a7cde29eb6ab5d98141bd642af0d78fb
2009-07-02 18:40:34 +00:00
drh
ce9b0157f0
Work toward cleaning up the authorizer interface. Work is on-going. This
...
is an incremental check-in. (CVS 6598)
FossilOrigin-Name: 694662f7860179403e0cc55b45ae8afa45aa7dfb
2009-05-04 01:58:31 +00:00
danielk1977
52bd7912af
If an SQLITE_DELETE authorization callback returns SQLITE_IGNORE, proceed with the delete operation but disable the truncate optimization. (CVS 5845)
...
FossilOrigin-Name: 65a2e131732399f0f14f982eb0689482fdb87b6c
2008-10-27 15:34:32 +00:00
danielk1977
524cc21ed6
Call the authorizer callback the same number of times whether or not the query flattening occurs. (CVS 5338)
...
FossilOrigin-Name: 8b88b64bb37df4e38cbfe31a14c219688b26e2af
2008-07-02 13:13:51 +00:00
drh
f93d99990c
Do not attempt to omit unused columns of a view in an instead-of trigger
...
since sometimes those columns can be used in ways that we do not expect.
Ticket #3055 . (CVS 5012)
FossilOrigin-Name: f5fc42e96d36b78797d7fa10b01d22b8501112b1
2008-04-15 14:36:42 +00:00
drh
0f35a6b529
When materializing a view for an UPDATE or DELETE make use of the WHERE
...
clause to limit the number of rows materialized. Ticket #2938 . (CVS 4782)
FossilOrigin-Name: 5ab71c3a79cac04cb2c576f83a62218d05571006
2008-02-12 16:52:14 +00:00
danielk1977
8f2c54e6e2
Optimize trigger compilation to avoid populating the OLD.* and NEW.* pseudo-tables with data that will never be used. Some testing to come. (CVS 4651)
...
FossilOrigin-Name: e08a33ed7255c22ce2805363f44a1d7770acb2dd
2008-01-01 19:02:09 +00:00
danielk1977
8e556520e9
Modify the Tcl interface to use sqlite3_prepare_v2(). (CVS 4542)
...
FossilOrigin-Name: 7bb00c7df672cb8988121f30e3bbdea9ad951603
2007-11-13 10:30:24 +00:00
danielk1977
5a8f9374ab
Fixes to the test suite (no code changes) so that quick.test runs with OMIT_ATTACH builds. #2706 . (CVS 4480)
...
FossilOrigin-Name: 07c00fffe50e8380748f7ae02328531a75d64610
2007-10-09 08:29:32 +00:00
drh
5169bbc6a3
Enhance the sqlite3_set_authorizer() callback so that it provides callbacks
...
on each SQL function that is invoked. (CVS 3365)
FossilOrigin-Name: 4547c81f7da29b1490c6eba8d9c333218c5cb88f
2006-08-24 14:59:45 +00:00
danielk1977
c69cdfd4ec
Add tests (and fixes) for the virtual table transaction interface. (CVS 3265)
...
FossilOrigin-Name: 8a5b121f2f26bebe3f1164bc2f504d29b74400f4
2006-06-17 09:39:55 +00:00
danielk1977
4273deaec1
When updating a view, invoke the authorization callback for reading the view before setting the authorization-context to the view name. (CVS 3264)
...
FossilOrigin-Name: 48d297c561b8d3d670ab425115ef50d1901523b6
2006-06-17 06:31:18 +00:00
drh
81f2ccdce9
Authorization callback on the ALTER TABLE ADD COLUMN command.
...
Ticket #1479 . (CVS 3043)
FossilOrigin-Name: 461f586973431438bb074aa3077f705e9b1b80da
2006-01-31 14:28:44 +00:00
danielk1977
3bdca9c9a5
Test suite fixes for builds that define OMIT symbols. (CVS 2962)
...
FossilOrigin-Name: 3a54a33dcb7e765ee3773397407e8929a8cfe1a9
2006-01-17 09:35:01 +00:00
danielk1977
ff890793fc
Test file fixes for libaries compiled with various SQLITE_OMIT_ macros. (CVS 2961)
...
FossilOrigin-Name: c058f483a52c8043178b6329aa5e58bedf0c8277
2006-01-16 16:24:25 +00:00
danielk1977
bab45c647d
Fix some of the issues raised in #1615 . (CVS 2959)
...
FossilOrigin-Name: 0d5d83bcbd65dd7ae968909acfee075185e49c38
2006-01-16 15:14:27 +00:00
drh
a3e4d96f5d
Make sure the authenticator does not try to authenticate columns in
...
subqueries. Ticket #1607 . (CVS 2939)
FossilOrigin-Name: 55b7dfaf4d3a6d01fffdaf1707e88bcd215d7333
2006-01-13 13:55:44 +00:00
drh
2ce99ecf8b
Fix authentication so that it works with AS aliases. Ticket #1338 . (CVS 2570)
...
FossilOrigin-Name: cc7ae73ed01f0b89e31dd8de48b913bbd83887b8
2005-07-29 15:36:14 +00:00
drh
e6e049694d
Full-coverage testing and documentation for the ANALYZE command. The
...
results of analysis are still not loaded or used, however. (CVS 2561)
FossilOrigin-Name: bd7583a5d63412785a9c5de54d25b509da241605
2005-07-23 02:17:03 +00:00
danielk1977
53c0f7480b
Add the SQLITE_OMIT_TEMPDB compile time macro. (CVS 2427)
...
FossilOrigin-Name: c41d55443c2dd532147962b87f542fb7d37075fd
2005-03-29 03:10:59 +00:00
danielk1977
a21c6b6fe0
Modifications and bugfixes so that the test suite passes with the TCL statement cache turned on. (CVS 2271)
...
FossilOrigin-Name: d5233e0747789dea04d35a8350b408321d23a64d
2005-01-24 10:25:59 +00:00
danielk1977
1d54df88e3
Add authorization callbacks for REINDEX. (CVS 2148)
...
FossilOrigin-Name: 9f0d744ee4d99f44e88c6f799821791c3b5f31b6
2004-11-23 15:41:16 +00:00
danielk1977
27188fb5f0
Have tests pass when SQLITE_OMIT_SCHEMA_PRAGMAS is defined. (CVS 2144)
...
FossilOrigin-Name: 6ccb589bd94fc7d33e07caa39e011c3628563e9b
2004-11-23 10:13:03 +00:00
danielk1977
81650dc6c8
Ensure tests pass when SQLITE_OMIT_TRIGGER is defined. (CVS 2137)
...
FossilOrigin-Name: 53894988ac1ad44ec65a1e1c420e2a26eb4c2efd
2004-11-22 11:51:13 +00:00
danielk1977
0fa8ddbdec
Modify test suite to work when SQLITE_OMIT_VIEW is defined. (CVS 2132)
...
FossilOrigin-Name: 711e8d7695dfc74b3f1ee00591dcdda2cd7fc7d5
2004-11-22 08:43:32 +00:00
danielk1977
215e64da5e
Fix auth.test to work when SQLITE_OMIT_ALTERTABLE is defined. (CVS 2130)
...
FossilOrigin-Name: 27a8379b54d6a1169b89e540ba44f4f94d006fb7
2004-11-22 03:34:21 +00:00
danielk1977
1c8c23cc36
Add authorization callbacks to ALTER TABLE. (CVS 2093)
...
FossilOrigin-Name: c4115aa3a1b010704af76c5ae9f6dcbfa4038df8
2004-11-12 15:53:37 +00:00