Revision 12789
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
1885 | 1885 |
CREATE FUNCTION is_constant(col col_ref) RETURNS boolean |
1886 | 1886 |
LANGUAGE sql STABLE |
1887 | 1887 |
AS $_$ |
1888 |
SELECT COALESCE(util.col_comment($1) LIKE 'constant%', false) |
|
1888 |
SELECT COALESCE(util.col_comment($1) LIKE ' |
|
1889 |
constant |
|
1890 |
%', false) |
|
1889 | 1891 |
$_$; |
1890 | 1892 |
|
1891 | 1893 |
|
Also available in: Unified diff
bugfix: schemas/util.sql: is_constant(util.col_ref): updated to include standard newline at beginning of comment (applies to newly-imported staging tables)