%
request = Web::MODULE.request
queries = request.query_fields.to_hash
require 'rdb'
#$NO_GC_FOR_INTERBASE = true
@database_name = 'IBLocal'
@database =
RDB::SESSION.databases.find{|i| i.database_name == @database_name} ||
RDB::Database.new(@database_name, 'SYSDBA', 'masterkey')
@query = RDB::Query.new @database
@query.sql.text = <db erb
<%
@query.open
%>
<%
@query.close
%>
<%
GC.start
%>
<% @query.fields.each do |field| %>
<% @query.each do |fields| %>
<%= field.field_name %>
<% end %>
<% fields.each do |field| %>
<% end %>
<%= s=field.value.to_s; s.empty? ? ' ' : s %>
<% end %>