Forum OpenACS Q&A: Problems with Schema Browser

Collapse
Posted by Jorge Garcia on
Hi,

I have installed the Schema Browser with the last PG, v7.21.

They show me all tables in the system, but when I click on any
table's url, I get an error. Everytime.

Any idea?

---------
Request Error
Database operation "select" failed (exception NSDB, "Query was not a
statement returning rows.")
    while executing
"ns_pg_bind select nsdb0 {
        select
            a.attname as column_name,
            case when t.typlen = -1 and t.typname <> 'numeric'
        ..."
    ("uplevel" body line 1)
    invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql"
    invoked from within
"db_exec select $db $full_statement_name $sql"
    invoked from within
"set selection [db_exec select $db $full_statement_name $sql]"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $code_block "
    invoked from within
"db_with_handle db {
    set selection [db_exec select $db $full_statement_name $sql]

    set counter 0
    while { [db_getrow $db $selection] } {
        incr co..."
    (procedure "db_foreach" line 35)
    invoked from within
"db_foreach schema_browser_index_get_user_table_data "
        select
            a.attname as column_name,
            case when t.typlen = -1 and t.t..."
    (procedure "sb_get_table_description" line 29)
    invoked from within
"sb_get_table_description users"
    ("eval" body line 1)
    invoked from within
"eval $script"
    invoked from within
"ns_cache eval util_memoize $script {
        list $current_time [eval $script]
    }"
    (procedure "util_memoize" line 20)
    invoked from within
"util_memoize "sb_get_table_description $table_name""
    invoked from within
"if { [exists_and_not_null table_name] } {
    append page_content [util_memoize "sb_get_table_description
$table_name"]
} else {
    set table_name ""..."
    ("uplevel" body line 44)
    invoked from within
"uplevel {
          ad_page_contract {
    data structures used

    column_info: a type of ns_set expected to containt the following
values
    colu..."
    (procedure "code::tcl::/web/votobit/packages/schema-
browser/www/index" line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is
up-to-date
      adp_init tcl $__adp_stub
..."
    ("uplevel" body line 3)
    invoked from within
"uplevel {

    if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is
up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 3)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    $handler
      } ad_script_abort val {
    # do nothing
      }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$path""
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    rp_serve_abstract_file "$root/$path"
    set tcl_url2file([ad_conn url]) [ad_conn file]
    set tcl_url2path_info([ad_conn url]) [ad_conn path_inf..."
--------------

Collapse
Posted by Jeff Davis on
The pg_description table changed between 7.1 and 7.2. I posted a patch for this at https://openacs.org/sdm/one-patch.tcl?patch_id=290 which has been committed to cvs...
Collapse
Posted by Jorge Garcia on
Thanks, Jeff.
I will try.
We have installed PG 7.2 and it seems we would need some more patches the next weeks. :))
Regards,