Revision 8087
Added by Aaron Marcuse-Kubitza almost 12 years ago
schemas/functions.sql | ||
---|---|---|
486 | 486 |
prefix text := functions.name(type)||'.'; |
487 | 487 |
BEGIN |
488 | 488 |
RETURN QUERY |
489 |
SELECT name_, prefix||name_ FROM functions.col_names(type) f (name_); |
|
489 |
SELECT name_, functions.ensure_prefix(prefix, name_) |
|
490 |
FROM functions.col_names(type) f (name_); |
|
490 | 491 |
END; |
491 | 492 |
$$; |
492 | 493 |
|
Also available in: Unified diff
schemas/functions.sql: col_global_names(): Use new functions.ensure_prefix() to only add the table name prefix if it doesn't already exist. This makes the function idempotent.