Revision 7066
Added by Aaron Marcuse-Kubitza almost 12 years ago
vegbien_dest | ||
---|---|---|
20 | 20 |
${prefix}password="$(cat "$selfDir/../config/bien_password")" \ |
21 | 21 |
${prefix}database=vegbien \ |
22 | 22 |
${prefix}schemas="temp${public:+,$public},TNRS,functions,py_functions" |
23 |
|
|
24 |
# Schema override for referring to a table in the $public schema |
|
25 |
local schemaVar=${prefix}schema tableVar=${prefix}table |
|
26 |
if test -n "${!schemaVar+t}" -a -n "${!tableVar+t}"; then |
|
27 |
local tableTable="${!tableVar#public.}" |
|
28 |
if test "$tableTable" != "${!tableVar}"; then # had prefix |
|
29 |
export $tableVar="$tableTable" $schemaVar="$public" |
|
30 |
fi |
|
31 |
fi |
|
23 | 32 |
} |
24 | 33 |
vegbien_dest_main "$@" |
Also available in: Unified diff
vegbien_dest: Added schema override support for referring to a table in the $public schema