Index: openacs-4/packages/acs-tcl/tcl/00-database-procs-oracle.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/00-database-procs-oracle.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-tcl/tcl/00-database-procs-oracle.tcl 30 May 2001 20:53:00 -0000 1.9 +++ openacs-4/packages/acs-tcl/tcl/00-database-procs-oracle.tcl 29 Jul 2001 23:16:50 -0000 1.10 @@ -7,6 +7,15 @@ @cvs-id $Id$ } +ad_doc db_compatible_rdbms_p { db_type } { + Returns 1 if the given db_type is compatible with the current RDBMS. If db_type + is blank we assume this is a legacy Oracle package that's not been moved to + the OpenACS multidb framework. +} { + return [expr { [empty_string_p $db_type] || [string equal [db_type] $db_type] || \ + [string equal $db_type "common"] }] +} + ad_proc -public db_nullify_empty_string { string } { A convenience function that returns [db_null] if $string is the empty string. } {