xo::db::require proc exists_column

 xo::db::require[i] exists_column

Defined in

Partial Call Graph (max 5 caller/called nodes):
%3 test_xotcl-core xotcl-core (test ) xo::db::require proc exists_column xo::db::require proc exists_column test_xotcl-core->xo::db::require proc exists_column test_xotcl_core_tutorial_2 xotcl_core_tutorial_2 (test ) test_xotcl_core_tutorial_2->xo::db::require proc exists_column

Testcases:
xotcl_core_tutorial_2, xotcl-core
Source code:

#
# The following "try" operation is a transitional code: When
# someone upgrades from OpenACS 5.9.1 to OpenACS 5.10, and the
# upgrade script of 5.10 were not yet executed, the SQL function
# definition is still the one of 5.9.1 have no -p_table and
# p_column attributes defined (still the old names). A end user is
# lost in this situation. Therefore, we provide as a fallback the
# interface to the 5.9.1 parameter names. The situation is still a
# problem in OpenACS 5.10, since the Oracle code has still the old
# names. Therefore, for OpenACS 5.10.1, the names are made more
# consistent, using "table_name" (abbreviated as table) and
# "column" as on several other occasions.
#

try {
  ::acs::dc call util table_column_exists  -table $table_name  -column $column_name
} on error {errorMsg} {
  try {
    ::acs::dc call util table_column_exists  -t_name $table_name  -c_name $column_name
  } on error {errorMsg} {
    ::acs::dc call util table_column_exists  -p_table $table_name  -p_column $column_name
  }
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: