Revision 14199
Added by Aaron Marcuse-Kubitza over 10 years ago
util.sql | ||
---|---|---|
1161 | 1161 |
|
1162 | 1162 |
|
1163 | 1163 |
-- |
1164 |
-- Name: col_add(derived_col_def); Type: FUNCTION; Schema: util; Owner: - |
|
1165 |
-- |
|
1166 |
|
|
1167 |
CREATE FUNCTION col_add(def derived_col_def) RETURNS void |
|
1168 |
LANGUAGE sql |
|
1169 |
AS $$ |
|
1170 |
SELECT util.col_add((def.col, |
|
1171 |
util.typeof(def.expr, (def).col.table_))::util.col_def); |
|
1172 |
$$; |
|
1173 |
|
|
1174 |
|
|
1175 |
-- |
|
1164 | 1176 |
-- Name: col_comment(col); Type: FUNCTION; Schema: util; Owner: - |
1165 | 1177 |
-- |
1166 | 1178 |
|
Also available in: Unified diff
schemas/util.sql: added col_add(derived_col_def)