Commit aa0db0d8 authored by Frank Bergmann's avatar Frank Bergmann

- added im_ad_hoc_query function

parent bfc6a804
Pipeline #1068 failed with stages
......@@ -1611,6 +1611,29 @@ ad_proc -public im_valid_auto_login_p {
}
# ---------------------------------------------------------------
# Ad-hoc execution of SQL-Queries
# Format for "Developer Service" "pre" display
# ---------------------------------------------------------------
ad_proc -public im_ad_hoc_query {
sql
} {
Ad-hoc execution of SQL-Queries
Format for browser "pre" display
} {
set lol [db_list_of_lists ad_hoc_query $sql]
set result ""
foreach row $lol {
foreach col $row {
append result "$col\t"
}
append result "\n"
}
return $result
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment