Revision 12301
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
1156 | 1156 |
|
1157 | 1157 |
|
1158 | 1158 |
-- |
1159 |
-- Name: eval2records(text); Type: FUNCTION; Schema: util; Owner: - |
|
1160 |
-- |
|
1161 |
|
|
1162 |
CREATE FUNCTION eval2records(sql text) RETURNS SETOF record |
|
1163 |
LANGUAGE plpgsql |
|
1164 |
AS $$ |
|
1165 |
BEGIN |
|
1166 |
PERFORM util.debug_print_sql(sql); |
|
1167 |
RETURN QUERY EXECUTE sql; |
|
1168 |
END; |
|
1169 |
$$; |
|
1170 |
|
|
1171 |
|
|
1172 |
-- |
|
1159 | 1173 |
-- Name: eval2set(text, anyelement); Type: FUNCTION; Schema: util; Owner: - |
1160 | 1174 |
-- |
1161 | 1175 |
|
Also available in: Unified diff
schemas/util.sql: added eval2records()