1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Make sure the authenticator does not try to authenticate columns in

subqueries.   Ticket #1607. (CVS 2939)

FossilOrigin-Name: 55b7dfaf4d3a6d01fffdaf1707e88bcd215d7333
This commit is contained in:
drh
2006-01-13 13:55:44 +00:00
parent 327bd59216
commit a3e4d96f5d
4 changed files with 28 additions and 12 deletions

View File

@ -12,7 +12,7 @@
# focus of this script is testing the ATTACH and DETACH commands
# and related functionality.
#
# $Id: auth.test,v 1.29 2005/07/29 15:36:15 drh Exp $
# $Id: auth.test,v 1.30 2006/01/13 13:55:45 drh Exp $
#
set testdir [file dirname $argv0]
@ -2207,6 +2207,17 @@ do_test auth-5.1 {
}
} {1}
# Ticket #1607
#
do_test auth-5.2 {
execsql {
SELECT name FROM (
SELECT * FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master)
WHERE type='table'
ORDER BY name
}
} {sqlite_stat1 t1 t2 t3 t4 tx v1chng}
rename proc {}
rename proc_real proc