Revision 14178
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
2307 | 2307 |
|
2308 | 2308 |
|
2309 | 2309 |
-- |
2310 |
-- Name: first_col(regclass); Type: FUNCTION; Schema: util; Owner: - |
|
2311 |
-- |
|
2312 |
|
|
2313 |
CREATE FUNCTION first_col(table_ regclass) RETURNS col |
|
2314 |
LANGUAGE sql STABLE |
|
2315 |
AS $$ |
|
2316 |
SELECT * FROM util.cols(table_) LIMIT 1 |
|
2317 |
$$; |
|
2318 |
|
|
2319 |
|
|
2320 |
-- |
|
2310 | 2321 |
-- Name: first_word(text); Type: FUNCTION; Schema: util; Owner: - |
2311 | 2322 |
-- |
2312 | 2323 |
|
Also available in: Unified diff
schemas/util.sql: added first_col(regclass)