mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Support '' for literal ' in psql single-quote strings, documentation update.
This commit is contained in:
@ -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'); }
|
||||
|
Reference in New Issue
Block a user