From 7dad3b2d66bfdc5d653961e8b4f87870106aaeee Mon Sep 17 00:00:00 2001
From: Ted Trask No results, try adjusting query Download query result This form accepts a Postgresql SELECT statement and displays the results. Examples:
<%= html.html_escape(form.value.result.label) %>
+ <%= html.html_escape(form.value.result.label) %>
<% if #form.value.result.value == 0 then %>
-
-
<% if viewlibrary.check_permission("downloadadhocquery") then %>
-
+
+
+
+
+
+
<% for i,name in ipairs(form.value.names.value) do %>
-
-
-
+
+
+
<% for i,row in ipairs(form.value.result.value) do %>
- <%= html.html_escape(name) %>
+ <%= html.html_escape(name) %>
<% end %>
-
+
<% for j,name in ipairs(form.value.names.value) do %>
-
+
<% end %>
-
- <%= html.html_escape(row[name]) %>
+ <%= html.html_escape(row[name]) %>
<% end %>
- <%= html.html_escape(form.label) %>
+<%= html.html_escape(form.label) %>
<% htmlviewfunctions.displayformstart(form, page_info) %>
-This form accepts a Postgresql SELECT statement and displays the results. Examples:
+
-The available database tables and descriptions are listed below.
+The available database tables and descriptions are listed below.SELECT clientuserid, sum(bytes) AS total FROM pubweblog GROUP BY clientuserid ORDER BY total DESC
SELECT clientuserid, sum(bytes) AS total FROM pubweblog WHERE logdatetime >= 'yesterday' and logdatetime < 'today' GROUP BY clientuserid ORDER BY total DESC
SELECT extract(hour from date) AS hour, sum(numrequest) AS numrequest, sum(numblock) AS numblock FROM usagestat GROUP BY extract(hour from date) ORDER BY hour
These tables contain the pre-purge and historical access logs respectively. The definition of the table is as follows:
( sourcename character varying(40), @@ -109,21 +109,19 @@ These tables contain the pre-purge and historical access logs respectively. The selected boolean, id int, ) -
This table contains the database history, including such information as which log files were loaded and how many entries they contained. The definition of the table is as follows:
( logdatetime timestamp(3) without time zone NOT NULL, msgtext text ) -
This table contains the list of log file sources. The definition of the table is as follows:
( sourcename character varying(40) NOT NULL, @@ -134,11 +132,10 @@ This table contains the list of log file sources. The definition of the table is tzislocal boolean, enabled boolean ) -
This table contains a historical record of pages requested and blocked by hour. The definition of the table is as follows:
( sourcename character varying(40) NOT NULL, @@ -146,4 +143,4 @@ This table contains a historical record of pages requested and blocked by hour. numrequest integer, numblock integer ) -