Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb843328

Browse files
committed
\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 inany case it's confusing for the command to be interpreted as \dd ifanything is appended. Per Jaime Casanova.
1 parent5f5ba92 commitb843328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.217 2010/03/08 23:03:00 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.218 2010/04/03 20:55:57 tgl Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"command.h"
@@ -361,7 +361,7 @@ exec_command(const char *cmd,
361361
success=listCasts(pattern);
362362
break;
363363
case'd':
364-
if (strcmp(cmd,"ddp")==0)
364+
if (strncmp(cmd,"ddp",3)==0)
365365
success=listDefaultACLs(pattern);
366366
else
367367
success=objectDescription(pattern,show_system);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp