Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c2ed7 commit 21d1612Copy full SHA for 21d1612
src/bin/psql/help.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
5
6
- * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.90 2004/07/15 03:56:06 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.91 2004/08/07 03:36:07 momjian Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "common.h"
@@ -310,9 +310,9 @@ helpSQL(const char *topic, unsigned short int pager)
310
int nl_count = 0;
311
char *ch;
312
313
- /* don't care about trailing spaces */
+ /* don't care about trailing spaces or semicolons */
314
len = strlen(topic);
315
- while (topic[len - 1] == ' ')
+ while (topic[len - 1] == ' ' || topic[len - 1] == ';')
316
len--;
317
318
/* Count newlines for pager */
0 commit comments