8000 Fix set_auto_conf with single quotes by demonolock · Pull Request #153 · postgrespro/testgres · GitHub
[go: up one dir, main page]

Skip to content
10000

Fix set_auto_conf with single quotes #153

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 4, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
PostgresNode::_escape_config_value is updated (code style)
  • Loading branch information
dmitry-lipetsk committed Dec 4, 2024
commit 1335e517e6d8bc16f2d628446c02a03078c5957e
12 changes: 6 additions & 6 deletions testgres/node.py
81D3
Original file line numberDiff line number Diff line change
Expand Up @@ -1704,17 +1704,17 @@ def _escape_config_value(value):
result = "'"

for ch in value:
if (ch == "'"):
if ch == "'":
result += "\\'"
elif (ch == "\n"):
elif ch == "\n":
result += "\\n"
elif (ch == "\r"):
elif ch == "\r":
result += "\\r"
elif (ch == "\t"):
elif ch == "\t":
result += "\\t"
elif (ch == "\b"):
elif ch == "\b":
result += "\\b"
elif (ch == "\\"):
elif ch == "\\":
result += "\\\\"
else:
result += ch
Expand Down
0