Skip to content

Commit daac2d0

Browse files
committed
Parse the arguments of \connect as SQL identifiers, so that they expose
the expected behavior in mixed-case situations. bug report from James Pattie, 2001-08-31
1 parent 60ce9e9 commit daac2d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/psql/command.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.56 2001/06/08 23:53:48 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.57 2001/09/02 23:52:19 petere Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "command.h"
@@ -241,8 +241,8 @@ exec_command(const char *cmd,
241241
char opt1q,
242242
opt2q;
243243

244-
opt1 = scan_option(&string, OT_NORMAL, &opt1q);
245-
opt2 = scan_option(&string, OT_NORMAL, &opt2q);
244+
opt1 = scan_option(&string, OT_SQLID, &opt1q);
245+
opt2 = scan_option(&string, OT_SQLID, &opt2q);
246246

247247
if (opt2)
248248
/* gave username */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy