aboutsummaryrefslogtreecommitdiff
path: root/test/auth.test
AgeCommit message (Collapse)AuthorLines
2026-07-24Fix a bug in the check-in [bbd69ce274620008] causing that bug-fixdrh-1/+1
check-in to fail to completely fix the original bug. This fix is in response to the follow-up report at [bugs:/info/2026-07-24T02:52:08Z|Bug 2026-07-24T02:52:08Z]. FossilOrigin-Name: 2cb22877683680c1f89bcc9edb47bd1a4a8755d4a6b846a1a20136a657dacdcc
2026-07-05Be sure to invoke the authorizer callback on all terms of the USING clausedrh-0/+25
in a RIGHT JOIN. [bugs:/info/2026-07-05T08:15:45Z|Bug 2026-07-05T08:15:45Z] FossilOrigin-Name: bbd69ce27462000873af053bfebdd305c53deac85c426b1e7dbd927b5f17d622
2026-03-20If the argument to REINDEX is EXPRESSIONS (with no schema prefix) then itdrh-4/+4
updates both expression indexes, and any indexes named "expressions" or all indexes of any tables name "expressions". FossilOrigin-Name: 72650dc152279a6da1937f377b1e16b79f4cd664841e12222dc5459838408d22
2023-02-06Fix some test scripts that were failing with SQLITE_OMIT_VIRTUALTABLE builds.dan-8/+10
FossilOrigin-Name: 81c118d90b281b30f40b3eeefaeb2c8350aa40080b4fe7de8f21d263986c6acb
2022-12-29A call to sqlite3_declare_vtab() should not cause DML/DDL authorizationdrh-0/+13
failures. FossilOrigin-Name: eed1e030722deb24674e7c2d165a2a359576c6bb5769d3bdd5fa645bc0f2ecc7
2022-01-18Fix ALTER TABLE DROP COLUMN so that it invokes the authorizer. Fix fordrh-6/+37
[forum:/forumpost/fd82b85947541dec|forum post fd82b85947541dec]. FossilOrigin-Name: aca6c61d79215519fb006af19d9011029df68f195a4ce65aff7a1bf4e36efb94
2021-06-14In the authorizer, use SQLITE_DROP_INDEX, not SQLITE_DROP_TEMP_INDEXdrh-1/+15
when dropping an index in an attached database. FossilOrigin-Name: e5a5acd6006133c5da4a7dd79726dbaa41c0d60ebeda890f848a6aafe5f9ef70
2019-08-08Remove support for STAT3. The sqlite_stat3 tables are ignored, if theydrh-5/+1
exist. STAT4 continues to work as it always has, and as it is a superset of STAT3 is the recommended replacement. FossilOrigin-Name: 1e17ea2fd1df4ad49138c787c8fe3207dd0c25c93f9001d52a9b69f8c12e841c
2018-09-19Fix a compilation issue in the "userauth" extension. Also fix a few testdan-1/+2
script errors that occur with SQLITE_USER_AUTHENTICATION=1 builds. FossilOrigin-Name: 221f3f572ed49d7af69a2e7c88741fa5206ea33ca59ee791eac7698bdd11ca4d
2018-09-06Fix a problem in ALTER TABLE with SQLITE_OMIT_VIRTUALTABLE builds.dan-1/+1
FossilOrigin-Name: fa835145e63749e06e04bd50ff992afaeae05dcdd1df597d13911f944e62076b
2018-08-25Invoke the authorizer for ALTER TABLE RENAME COLUMN.drh-0/+69
FossilOrigin-Name: fc293bcb3402f049fb9e22aacfb4fdcd13f8609edf29c97d6cb95ce351363873
2017-05-11Add another test case for the new authorizer functionality.dan-0/+22
FossilOrigin-Name: 339df63f4064f3b9c8d4e8b82e72d00b49d9406bc350b14809a4caf7ddc4b736
2017-05-11New requirements marks and documentation for the authorizer.drh-0/+23
FossilOrigin-Name: 3980ea0911b3ad3f86d7a7bdc6503f233315c274f473e18831e13eda2c238eeb
2017-05-10Invoke the SQLITE_READ authorizer callback with a NULL column name for anydrh-0/+23
table referenced by a query but from when no columns are extracted. FossilOrigin-Name: 92ab1f7257d2866c69eaaf4cf85990677b911ef425e9c5a36a96978cccfb551c
2016-12-16All temp.sqlite_master to be used as an alias for sqlite_temp_master.drh-20/+20
FossilOrigin-Name: 8d646905b830d5bb29092e103ac5cb499b3c7e5a
2016-04-04Test that the view name is passed to the authorization callback when a ↵dan-2/+47
SELECT statement is run on a view. FossilOrigin-Name: 8627a4cd6d64bd076b56c1e8ccc3b1dfc1b4c07d
2014-09-11Add support for the extra parameter on the sqlite3_set_authorizer() callbackdrh-137/+137
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-01-16Add the ability for the authorizer callback to disallow recursivedrh-0/+36
queries. FossilOrigin-Name: 9efc120a1548c03f3d8aabbadf1050ff2a119c31
2013-08-12If ENABLE_STAT3 is defined but ENABLE_STAT4 is not, have ANALYZE create and ↵dan-1/+5
populate the sqlite_stat3 table instead of sqlite_stat4. FossilOrigin-Name: cca8bf4372ab7a0258aa5c9397818415c6cf0abf
2013-08-03Begin adding experimental sqlite_stat4 table. This commit is buggy.dan-4/+4
FossilOrigin-Name: 2beea303a1d609cd2ff252412c50b966b9e5e8f1
2013-05-06Make sure the authorizer callback gets a valid pointer to "ROWID" for thedrh-0/+23
column-name parameter when doing an UPDATE that changes the rowid. Fix for ticket [0eb70d77cb05bb2272]. FossilOrigin-Name: 26a59bb88d4082758eb281b365b57f9a0c059d89
2013-03-09Fix a problem with resolving "db.view.column" references that appear in ↵dan-2/+6
UPDATE or DELETE statements executed against views. FossilOrigin-Name: ddee56c9b2b591b9386b1072c3b3a699f7c1f853
2011-10-21Purge lingering references to SQLITE_STAT2 from the code and test scripts.drh-8/+4
FossilOrigin-Name: aed2bf7a3c828a7191389b3f8235a9387977b476
2011-08-12Begin a branch that experimentally replaces sqlite_stat2 with a new tabledrh-1/+5
called sqlite_stat3 that will hopefully facilitate better query planning decisions. FossilOrigin-Name: 52e1d7e8ddd4bb5ef3a9d00fd2d719a8a784f807
2011-02-04Fix the ATTACH command so that the filename argument can be any expressiondrh-1/+12
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
2010-09-25Enhance the ANALYZE command so that it gathers statistics in the sqlite_stat1drh-3/+3
table even for tables that are empty or have no indices. FossilOrigin-Name: a7645d293801da64a7579737d0a8b48117af2e2c
2009-09-19Check in implementation of foreign key constraints.dan-3/+4
FossilOrigin-Name: d5d399811876391642937edeb9e8434dd9e356f5
2009-08-31Fix some authorization callback problems.dan-2/+2
FossilOrigin-Name: 8a746fbfd51f70f56e25ade59df49d2dc03c131c
2009-08-19Add the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the ↵dan-1/+6
stat2 table is not created, populated, or used. FossilOrigin-Name: 362665e89c21fd603d9f8ad6c0ead590e885af7c
2009-08-17First version of sqlite_stat2 (schema forces exactly 10 samples).dan-1/+1
FossilOrigin-Name: dd96bda2a85c1d94fb4a0bf5f27e2977f7f7e42e
2009-07-02Fix to sqlite3AuthRead to accommodate "new" or "old" references that are ↵danielk1977-1/+29
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-05-04Work toward cleaning up the authorizer interface. Work is on-going. Thisdrh-3/+3
is an incremental check-in. (CVS 6598) FossilOrigin-Name: 694662f7860179403e0cc55b45ae8afa45aa7dfb
2008-10-27If an SQLITE_DELETE authorization callback returns SQLITE_IGNORE, proceed ↵danielk1977-2/+5
with the delete operation but disable the truncate optimization. (CVS 5845) FossilOrigin-Name: 65a2e131732399f0f14f982eb0689482fdb87b6c
2008-07-02Call the authorizer callback the same number of times whether or not the ↵danielk1977-3/+3
query flattening occurs. (CVS 5338) FossilOrigin-Name: 8b88b64bb37df4e38cbfe31a14c219688b26e2af
2008-04-15Do not attempt to omit unused columns of a view in an instead-of triggerdrh-3/+3
since sometimes those columns can be used in ways that we do not expect. Ticket #3055. (CVS 5012) FossilOrigin-Name: f5fc42e96d36b78797d7fa10b01d22b8501112b1
2008-02-12When materializing a view for an UPDATE or DELETE make use of the WHEREdrh-5/+9
clause to limit the number of rows materialized. Ticket #2938. (CVS 4782) FossilOrigin-Name: 5ab71c3a79cac04cb2c576f83a62218d05571006
2008-01-01Optimize trigger compilation to avoid populating the OLD.* and NEW.* ↵danielk1977-8/+8
pseudo-tables with data that will never be used. Some testing to come. (CVS 4651) FossilOrigin-Name: e08a33ed7255c22ce2805363f44a1d7770acb2dd
2007-11-13Modify the Tcl interface to use sqlite3_prepare_v2(). (CVS 4542)danielk1977-1/+11
FossilOrigin-Name: 7bb00c7df672cb8988121f30e3bbdea9ad951603
2007-10-09Fixes to the test suite (no code changes) so that quick.test runs with ↵danielk1977-147/+151
OMIT_ATTACH builds. #2706. (CVS 4480) FossilOrigin-Name: 07c00fffe50e8380748f7ae02328531a75d64610
2006-08-24Enhance the sqlite3_set_authorizer() callback so that it provides callbacksdrh-2/+2
on each SQL function that is invoked. (CVS 3365) FossilOrigin-Name: 4547c81f7da29b1490c6eba8d9c333218c5cb88f
2006-06-17Add tests (and fixes) for the virtual table transaction interface. (CVS 3265)danielk1977-2/+1
FossilOrigin-Name: 8a5b121f2f26bebe3f1164bc2f504d29b74400f4
2006-06-17When updating a view, invoke the authorization callback for reading the view ↵danielk1977-1/+2
before setting the authorization-context to the view name. (CVS 3264) FossilOrigin-Name: 48d297c561b8d3d670ab425115ef50d1901523b6
2006-01-31Authorization callback on the ALTER TABLE ADD COLUMN command.drh-1/+68
Ticket #1479. (CVS 3043) FossilOrigin-Name: 461f586973431438bb074aa3077f705e9b1b80da
2006-01-17Test suite fixes for builds that define OMIT symbols. (CVS 2962)danielk1977-28/+38
FossilOrigin-Name: 3a54a33dcb7e765ee3773397407e8929a8cfe1a9
2006-01-16Test file fixes for libaries compiled with various SQLITE_OMIT_ macros. (CVS ↵danielk1977-9/+11
2961) FossilOrigin-Name: c058f483a52c8043178b6329aa5e58bedf0c8277
2006-01-16Fix some of the issues raised in #1615. (CVS 2959)danielk1977-4/+5
FossilOrigin-Name: 0d5d83bcbd65dd7ae968909acfee075185e49c38
2006-01-13Make sure the authenticator does not try to authenticate columns indrh-1/+12
subqueries. Ticket #1607. (CVS 2939) FossilOrigin-Name: 55b7dfaf4d3a6d01fffdaf1707e88bcd215d7333
2005-07-29Fix authentication so that it works with AS aliases. Ticket #1338. (CVS 2570)drh-1/+15
FossilOrigin-Name: cc7ae73ed01f0b89e31dd8de48b913bbd83887b8
2005-07-23Full-coverage testing and documentation for the ANALYZE command. Thedrh-1/+44
results of analysis are still not loaded or used, however. (CVS 2561) FossilOrigin-Name: bd7583a5d63412785a9c5de54d25b509da241605
2005-03-29Add the SQLITE_OMIT_TEMPDB compile time macro. (CVS 2427)danielk1977-517/+553
FossilOrigin-Name: c41d55443c2dd532147962b87f542fb7d37075fd