summaryrefslogtreecommitdiff
path: root/tests/examplefiles/psql_session.txt
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-04 12:39:06 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-04 12:39:06 +0100
commit98829589e3f9d4895c71ac1172a385278f61cdfa (patch)
tree1ed33e8ceb00a914177d3b91a18146e6a2c08ea9 /tests/examplefiles/psql_session.txt
parent36aae230c886fb0b2e5b8c79aec03cee0c40256a (diff)
downloadpygments-98829589e3f9d4895c71ac1172a385278f61cdfa.tar.gz
Better psql commands parser
Recognize strings and quoted variables. Handled as a separate state.
Diffstat (limited to 'tests/examplefiles/psql_session.txt')
-rw-r--r--tests/examplefiles/psql_session.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/examplefiles/psql_session.txt b/tests/examplefiles/psql_session.txt
index a0f045bc..8b920258 100644
--- a/tests/examplefiles/psql_session.txt
+++ b/tests/examplefiles/psql_session.txt
@@ -22,6 +22,11 @@ piro=> select * from test where foo <= :foo;
20 |
(2 rows)
+testdb=> \set foo 'my_table'
+testdb=> SELECT * FROM :"foo";
+
+testdb=> \set content `cat my_file.txt`
+testdb=> INSERT INTO my_table VALUES (:'content');
regression=# select (
regression(# 1);