Revision 8096
Added by Aaron Marcuse-Kubitza over 11 years ago
functions.sql | ||
---|---|---|
486 | 486 |
prefix text := functions.name(type)||'.'; |
487 | 487 |
BEGIN |
488 | 488 |
RETURN QUERY |
489 |
SELECT name_, functions.ensure_prefix(prefix, name_)
|
|
489 |
SELECT name_, (CASE WHEN functions.contains(search_for:='.', in_str:=name_) THEN '' ELSE prefix END)||name_
|
|
490 | 490 |
FROM functions.col_names(type) f (name_); |
491 | 491 |
END; |
492 | 492 |
$$; |
Also available in: Unified diff
schemas/functions.sql: col_global_names(): Treat any column name that contains . as already being globally unique, and don't prepend the table name. This allows renaming the table columns after running col_global_names(), without causing the table name to be re-prepended the next time col_global_names() is run.