diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-04 12:39:06 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-04 12:39:06 +0100 |
commit | 98829589e3f9d4895c71ac1172a385278f61cdfa (patch) | |
tree | 1ed33e8ceb00a914177d3b91a18146e6a2c08ea9 /tests/examplefiles/psql_session.txt | |
parent | 36aae230c886fb0b2e5b8c79aec03cee0c40256a (diff) | |
download | pygments-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.txt | 5 |
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); |