projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4403f70
)
Oops, back out paren fix. That is for 7.3.
author
Bruce Momjian
<
[email protected]
>
Fri, 28 Dec 2001 05:01:05 +0000
(
05:01
+0000)
committer
Bruce Momjian
<
[email protected]
>
Fri, 28 Dec 2001 05:01:05 +0000
(
05:01
+0000)
src/bin/psql/mainloop.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/mainloop.c
b/src/bin/psql/mainloop.c
index 0cf34dd28d9587092ed848cd6d7e64b48e0afab9..f6381c02cb00768444fef9ea1a1af3d1ed8fbe71 100644
(file)
--- a/
src/bin/psql/mainloop.c
+++ b/
src/bin/psql/mainloop.c
@@
-447,6
+447,7
@@
MainLoop(FILE *source)
{
const char *end_of_cmd = NULL;
+ paren_level = 0;
line[i - prevlen] = '\0'; /* overwrites backslash */
/* is there anything else on the line for the command? */
@@
-469,9
+470,6
@@
MainLoop(FILE *source)
success = slashCmdStatus != CMD_ERROR;
- if (query_buf->len == 0)
- paren_level = 0;
-
if ((slashCmdStatus == CMD_SEND || slashCmdStatus == CMD_NEWEDIT) &&
query_buf->len == 0)
{