diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index d26c86bf8630c5b21073942294782178dc763cd5..4a94a1ace12ae731d6a65246ae337f8ff6579f40 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);