File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33 *
44 * Copyright 2000 by PostgreSQL Global Development Group
55 *
6- * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.35 2001/02/10 02:31:28 tgl Exp $
6+ * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.36 2001/02/28 20:39:42 petere Exp $
77 */
88#include "postgres_fe.h"
99#include "mainloop.h"
@@ -249,7 +249,7 @@ MainLoop(FILE *source)
249249 pset .lineno ++ ;
250250
251251 /* nothing left on line? then ignore */
252- if (line [0 ] == '\0' )
252+ if (line [0 ] == '\0' && ! in_quote )
253253 {
254254 free (line );
255255 continue ;
@@ -510,7 +510,7 @@ MainLoop(FILE *source)
510510
511511
512512 /* Put the rest of the line in the query buffer. */
513- if (line [query_start + strspn (line + query_start , " \t\n\r" )] != '\0' )
513+ if (in_quote || line [query_start + strspn (line + query_start , " \t\n\r" )] != '\0' )
514514 {
515515 if (query_buf -> len > 0 )
516516 appendPQExpBufferChar (query_buf , '\n' );
You can’t perform that action at this time.
0 commit comments