aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-05-31 11:35:17 +0000
committerBruce Momjian <bruce@momjian.us>2006-05-31 11:35:17 +0000
commitc3c3902611f884bef3f37b95c7a082f6f2b9a238 (patch)
tree15d81db4d1b6261144dd67b0fde0832b43e6932d /src
parenteaca1175e98e937d6b2a9204a53a464fa00d1d56 (diff)
downloadpostgresql-c3c3902611f884bef3f37b95c7a082f6f2b9a238.tar.gz
postgresql-c3c3902611f884bef3f37b95c7a082f6f2b9a238.zip
Support '' for literal ' in psql single-quote strings, documentation update.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/psqlscan.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/psql/psqlscan.l b/src/bin/psql/psqlscan.l
index 4a344baf6b2..2c19b7ae9e1 100644
--- a/src/bin/psql/psqlscan.l
+++ b/src/bin/psql/psqlscan.l
@@ -33,7 +33,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.18 2006/05/11 19:15:35 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.19 2006/05/31 11:35:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -861,6 +861,9 @@ other .
{quote} { return LEXRES_OK; }
+ /* We don't need a state here because we are already in a string */
+{xqdouble} { emit("'", 1); }
+
"\\n" { appendPQExpBufferChar(output_buf, '\n'); }
"\\t" { appendPQExpBufferChar(output_buf, '\t'); }
"\\b" { appendPQExpBufferChar(output_buf, '\b'); }