<% 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

database_name <%= @database_name %>
table
<% @query.open %> <% @query.fields.each do |field| %> <% end %> <% @query.each do |fields| %> <% fields.each do |field| %> <% end %> <% end %>
<%= field.field_name %>
<%= s=field.value.to_s; s.empty? ? ' ' : s %>
<% @query.close %> <% GC.start %>