diff options
Diffstat (limited to 'tests/examplefiles/postgresql_test.txt')
-rw-r--r-- | tests/examplefiles/postgresql_test.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/examplefiles/postgresql_test.txt b/tests/examplefiles/postgresql_test.txt new file mode 100644 index 00000000..b818c33a --- /dev/null +++ b/tests/examplefiles/postgresql_test.txt @@ -0,0 +1,23 @@ +CREATE OR REPLACE FUNCTION something() RETURNS int4 AS +$x$ +BEGIN + RETURN 42; +END +$x$ +LANGUAGE plpgsql; + +CREATE FUNCTION pymax (a integer, b integer) + RETURNS integer +AS $$ + if a > b: + return a + return b +$$ LANGUAGE plpythonu; + +CREATE FUNCTION nested_lexers (a integer, b integer) +$function$ +BEGIN + RETURN ($1 ~ $q$[\t\r\n\v\\]$q$); +END; +$function$ +LANGUAGE sql; |