mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
:-) (CVS 24)
FossilOrigin-Name: 4cd98ebaeaedf66b258bbfa3a04d90c054294322
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
# This file implements some common TCL routines used for regression
|
||||
# testing the SQLite library
|
||||
#
|
||||
# $Id: tester.tcl,v 1.3 2000/05/30 00:51:27 drh Exp $
|
||||
# $Id: tester.tcl,v 1.4 2000/05/31 17:59:27 drh Exp $
|
||||
|
||||
# Create a test database
|
||||
#
|
||||
@ -89,3 +89,16 @@ proc execsql {sql} {
|
||||
}
|
||||
return $result
|
||||
}
|
||||
|
||||
# Another procedure to execute SQL. This one includes the field
|
||||
# names in the returned list.
|
||||
#
|
||||
proc execsql2 {sql} {
|
||||
set result {}
|
||||
db eval $sql data {
|
||||
foreach f $data(*) {
|
||||
lappend result $f $data($f)
|
||||
}
|
||||
}
|
||||
return $result
|
||||
}
|
||||
|
Reference in New Issue
Block a user