Revision 12480
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
1770 | 1770 |
|
1771 | 1771 |
|
1772 | 1772 |
-- |
1773 |
-- Name: is_set_stmt(text); Type: FUNCTION; Schema: util; Owner: - |
|
1774 |
-- |
|
1775 |
|
|
1776 |
CREATE FUNCTION is_set_stmt(sql text) RETURNS boolean |
|
1777 |
LANGUAGE sql IMMUTABLE |
|
1778 |
AS $_$ |
|
1779 |
SELECT upper(util.first_word($1)) = 'SET' |
|
1780 |
$_$; |
|
1781 |
|
|
1782 |
|
|
1783 |
-- |
|
1773 | 1784 |
-- Name: is_table(regclass); Type: FUNCTION; Schema: util; Owner: - |
1774 | 1785 |
-- |
1775 | 1786 |
|
Also available in: Unified diff
schemas/util.sql: added is_set_stmt()