summaryrefslogtreecommitdiff
path: root/tests/examplefiles/postgresql_test.txt
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-14 21:41:13 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-14 21:41:13 +0100
commitb0d1f5926432a2ecd424ef3a55a9cc71b41f8779 (patch)
tree643212f41a8f88f59fd70640f22306862d6dd39b /tests/examplefiles/postgresql_test.txt
parent01f3ba1b89485902663652b894454bd7d0097d6d (diff)
downloadpygments-b0d1f5926432a2ecd424ef3a55a9cc71b41f8779.tar.gz
Parse the language of a PostgreSQL function also when prefix
This is the way pg_dump saves it.
Diffstat (limited to 'tests/examplefiles/postgresql_test.txt')
-rw-r--r--tests/examplefiles/postgresql_test.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examplefiles/postgresql_test.txt b/tests/examplefiles/postgresql_test.txt
index 23bb6d03..fa0914e3 100644
--- a/tests/examplefiles/postgresql_test.txt
+++ b/tests/examplefiles/postgresql_test.txt
@@ -32,3 +32,13 @@ END;
$$
LANGUAGE plpgsql;
+-- As returned by pg_dump
+CREATE FUNCTION test_function() RETURNS integer
+ LANGUAGE plpgsql STABLE STRICT
+ AS $$
+begin
+ return 42;
+end
+$$;
+
+