Revision 10137
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/util.sql | ||
---|---|---|
911 | 911 |
|
912 | 912 |
|
913 | 913 |
-- |
914 |
-- Name: is_constant(col_ref); Type: FUNCTION; Schema: util; Owner: - |
|
915 |
-- |
|
916 |
|
|
917 |
CREATE FUNCTION is_constant(col col_ref) RETURNS boolean |
|
918 |
LANGUAGE sql STABLE STRICT |
|
919 |
AS $_$ |
|
920 |
SELECT COALESCE(util.col_comment($1) LIKE 'constant%', false) |
|
921 |
$_$; |
|
922 |
|
|
923 |
|
|
924 |
-- |
|
914 | 925 |
-- Name: join_strs_transform(text, text, text); Type: FUNCTION; Schema: util; Owner: - |
915 | 926 |
-- |
916 | 927 |
|
Also available in: Unified diff
schemas/util.sql: added is_constant(col_ref), for checking if a column has been marked "constant"