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

Commitb6f9834

Browse files
committed
psql: Make temporary editor files have .sql extension
This gives editors a better chance to treat these files as the SQLfiles that they are.
1 parent0de93a9 commitb6f9834

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
@@ -1879,10 +1879,10 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf,
18791879
*/
18801880
#endif
18811881
#ifndefWIN32
1882-
snprintf(fnametmp,sizeof(fnametmp),"%s%spsql.edit.%d",tmpdir,
1882+
snprintf(fnametmp,sizeof(fnametmp),"%s%spsql.edit.%d.sql",tmpdir,
18831883
"/", (int)getpid());
18841884
#else
1885-
snprintf(fnametmp,sizeof(fnametmp),"%s%spsql.edit.%d",tmpdir,
1885+
snprintf(fnametmp,sizeof(fnametmp),"%s%spsql.edit.%d.sql",tmpdir,
18861886
""/* trailing separator already present */ , (int)getpid());
18871887
#endif
18881888

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp