|
33 | 33 | * Portions Copyright (c) 1994, Regents of the University of California
|
34 | 34 | *
|
35 | 35 | * IDENTIFICATION
|
36 |
| - * $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.19 2006/05/31 11:35:17 momjian Exp $ |
| 36 | + * $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.20 2006/05/3122:11:44 tgl Exp $ |
37 | 37 | *
|
38 | 38 | *-------------------------------------------------------------------------
|
39 | 39 | */
|
@@ -857,12 +857,14 @@ other.
|
857 | 857 | }
|
858 | 858 |
|
859 | 859 | <xslashquote>{
|
860 |
| -/* single-quoted text: copy literally except for backslash sequences */ |
| 860 | +/* |
| 861 | + * single-quoted text: copy literally except for '' and backslash |
| 862 | + * sequences |
| 863 | + */ |
861 | 864 |
|
862 | 865 | {quote}{return LEXRES_OK; }
|
863 | 866 |
|
864 |
| -/* We don't need a state here because we are already in a string */ |
865 |
| -{xqdouble}{emit("'",1); } |
| 867 | +{xqdouble}{appendPQExpBufferChar(output_buf,'\''); } |
866 | 868 |
|
867 | 869 | "\\n"{appendPQExpBufferChar(output_buf,'\n'); }
|
868 | 870 | "\\t"{appendPQExpBufferChar(output_buf,'\t'); }
|
|