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

PSQL passes a database name through the explicit '-d <dbname>' parameter#168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletionstestgres/node.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1107,13 +1107,12 @@ def _psql(
else:
raise Exception("Input data must be None or bytes.")

dbname = dbname or default_dbname()

psql_params = [
self._get_bin_path("psql"),
"-p", str(self.port),
"-h", self.host,
"-U", username or self.os_ops.username,
"-d", dbname or default_dbname(),
"-X", # no .psqlrc
"-A", # unaligned output
"-t", # print rows only
Expand All@@ -1135,9 +1134,6 @@ def _psql(
else:
raise QueryException('Query or filename must be provided')

# should be the last one
psql_params.append(dbname)

return self.os_ops.exec_command(
psql_params,
verbose=True,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp