Forum .LRN Q&A: Response to dotLRN applets for Wimpy Point (slim) and Glossary

Samir, I get the following error when deleting a presentation:



Request Error

Database operation "0or1row" failed (exception NSDB, "Query was not 
a statement returning rows.")
    while executing
"ns_pg_bind 0or1row nsdb0 {
  
        select wp_presentation__delete(:pres_item_id);
        
      }"
    ("uplevel" body line 1)
    invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql"
    invoked from within
"db_exec 0or1row $db $full_statement_name $sql"
    invoked from within
"if {[regexp -nocase -- {^s*select} $test_sql match]} {
            db_qd_log Debug "PLPGSQL: bypassed anon function"
            set selection [db_ex..."
    ("uplevel" body line 6)
    invoked from within
"uplevel 1 $code_block "
    invoked from within
"db_with_handle db {
        # plsql calls that are simple selects bypass the plpgsql 
        # mechanism for creating anonymous functions (OpenACS - ..."
    (procedure "db_exec_plsql" line 13)
    invoked from within
"db_exec_plsql delete_presentation {
        begin
          wp_presentation.delete(:pres_item_id);
        end;
    }"

P.S. There is an existing bug report that says there is trouble with deleting slides. Thanks, Zack.