diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-04-03 20:55:57 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-04-03 20:55:57 +0000 |
commit | b84332830dcc83b8084c2721390708e9b972cb3a (patch) | |
tree | 171a4e32087732feea98a136e99b10bbc94140d2 /src | |
parent | 5f5ba923346daf841b9ab8cd7ffc208bafbee6c2 (diff) | |
download | postgresql-b84332830dcc83b8084c2721390708e9b972cb3a.tar.gz postgresql-b84332830dcc83b8084c2721390708e9b972cb3a.zip |
\ddp should be recognized as such even if user appends S or + to it.
Those options do nothing right now, but might be wanted later, and in
any case it's confusing for the command to be interpreted as \dd if
anything is appended. Per Jaime Casanova.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index d26c86bf863..4a94a1ace12 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2010, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.217 2010/03/08 23:03:00 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.218 2010/04/03 20:55:57 tgl Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -361,7 +361,7 @@ exec_command(const char *cmd, success = listCasts(pattern); break; case 'd': - if (strcmp(cmd, "ddp") == 0) + if (strncmp(cmd, "ddp", 3) == 0) success = listDefaultACLs(pattern); else success = objectDescription(pattern, show_system); |