mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix authentication so that it works with AS aliases. Ticket #1338. (CVS 2570)
FossilOrigin-Name: cc7ae73ed01f0b89e31dd8de48b913bbd83887b8
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# focus of this script is testing the ATTACH and DETACH commands
|
||||
# and related functionality.
|
||||
#
|
||||
# $Id: auth.test,v 1.28 2005/07/23 02:17:03 drh Exp $
|
||||
# $Id: auth.test,v 1.29 2005/07/29 15:36:15 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -2195,7 +2195,21 @@ do_test auth-4.5 {
|
||||
|
||||
} ;# ifcapable view && trigger
|
||||
|
||||
# Ticket #1338: Make sure authentication works in the presence of an AS
|
||||
# clause.
|
||||
#
|
||||
do_test auth-5.1 {
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
return SQLITE_OK
|
||||
}
|
||||
execsql {
|
||||
SELECT count(a) AS cnt FROM t4 ORDER BY cnt
|
||||
}
|
||||
} {1}
|
||||
|
||||
|
||||
rename proc {}
|
||||
rename proc_real proc
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user