mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Remove the COPY command. (CVS 1477)
FossilOrigin-Name: 287f86731c71401dbac098e08357367b4f8e5a43
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.12 2003/12/07 00:24:35 drh Exp $
|
||||
# $Id: auth.test,v 1.13 2004/05/27 17:22:56 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -417,57 +417,6 @@ do_test auth-1.53 {
|
||||
catchsql {SELECT * FROM t2}
|
||||
} {0 {11 2 33}}
|
||||
|
||||
set f [open data1.txt w]
|
||||
puts $f "7:8:9"
|
||||
close $f
|
||||
do_test auth-1.54 {
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
if {$code=="SQLITE_COPY"} {
|
||||
set ::authargs [list $arg1 $arg2 $arg3 $arg4]
|
||||
return SQLITE_DENY
|
||||
}
|
||||
return SQLITE_OK
|
||||
}
|
||||
catchsql {COPY t2 FROM 'data1.txt' USING DELIMITERS ':'}
|
||||
} {1 {not authorized}}
|
||||
do_test auth-1.55 {
|
||||
set ::authargs
|
||||
} {t2 data1.txt main {}}
|
||||
do_test auth-1.56 {
|
||||
execsql {SELECT * FROM t2}
|
||||
} {11 2 33}
|
||||
do_test auth-1.57 {
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
if {$code=="SQLITE_COPY"} {
|
||||
set ::authargs [list $arg1 $arg2 $arg3 $arg4]
|
||||
return SQLITE_IGNORE
|
||||
}
|
||||
return SQLITE_OK
|
||||
}
|
||||
catchsql {COPY t2 FROM 'data1.txt' USING DELIMITERS ':'}
|
||||
} {0 {}}
|
||||
do_test auth-1.58 {
|
||||
set ::authargs
|
||||
} {t2 data1.txt main {}}
|
||||
do_test auth-1.59 {
|
||||
execsql {SELECT * FROM t2}
|
||||
} {11 2 33}
|
||||
do_test auth-1.60 {
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
if {$code=="SQLITE_COPY"} {
|
||||
set ::authargs [list $arg1 $arg2 $arg3 $arg4]
|
||||
return SQLITE_OK
|
||||
}
|
||||
return SQLITE_OK
|
||||
}
|
||||
catchsql {COPY t2 FROM 'data1.txt' USING DELIMITERS ':'}
|
||||
} {0 {}}
|
||||
do_test auth-1.61 {
|
||||
set ::authargs
|
||||
} {t2 data1.txt main {}}
|
||||
do_test auth-1.62 {
|
||||
execsql {SELECT * FROM t2}
|
||||
} {11 2 33 7 8 9}
|
||||
|
||||
do_test auth-1.63 {
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
|
Reference in New Issue
Block a user