Index: openacs-4/packages/xotcl-core/tcl/05-db-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/05-db-procs.tcl,v diff -u -r1.148.2.42 -r1.148.2.43 --- openacs-4/packages/xotcl-core/tcl/05-db-procs.tcl 5 Dec 2021 16:18:58 -0000 1.148.2.42 +++ openacs-4/packages/xotcl-core/tcl/05-db-procs.tcl 26 Dec 2021 06:24:05 -0000 1.148.2.43 @@ -744,6 +744,7 @@ # We have to check for the prepared statement in the current # session and we have to create it if necessary there. # + ns_log notice "select 1 from pg_prepared_statements where name = $prepName" if {[ns_pg_bind 0or1row $handle { select 1 from pg_prepared_statements where name = :prepName }] eq ""} {