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

Commitd20cdd3

Browse files
committed
Tab complete table names after ALTER TABLE x [NO] INHERIT.
Jeff Janes
1 parentd7318d4 commitd20cdd3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,21 @@ psql_completion(char *text, int start, int end)
12611261

12621262
COMPLETE_WITH_LIST(list_ALTERENABLE2);
12631263
}
1264+
/* ALTER TABLE xxx INHERIT */
1265+
elseif (pg_strcasecmp(prev4_wd,"ALTER")==0&&
1266+
pg_strcasecmp(prev3_wd,"TABLE")==0&&
1267+
pg_strcasecmp(prev_wd,"INHERIT")==0)
1268+
{
1269+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tables,"");
1270+
}
1271+
/* ALTER TABLE xxx NO INHERIT */
1272+
elseif (pg_strcasecmp(prev5_wd,"ALTER")==0&&
1273+
pg_strcasecmp(prev4_wd,"TABLE")==0&&
1274+
pg_strcasecmp(prev2_wd,"NO")==0&&
1275+
pg_strcasecmp(prev_wd,"INHERIT")==0)
1276+
{
1277+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tables,"");
1278+
}
12641279
elseif (pg_strcasecmp(prev4_wd,"ALTER")==0&&
12651280
pg_strcasecmp(prev3_wd,"TABLE")==0&&
12661281
pg_strcasecmp(prev_wd,"DISABLE")==0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp