8000 fix: sql replace concat · PyMySQL/PyMySQL@807bc7a · GitHub
[go: up one dir, main page]

Skip to content

Commit 807bc7a

Browse files
fix: sql replace concat
1 parent 01af30f commit 807bc7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymysql/connections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,8 @@ def query(self, sql, unbuffered=False):
570570
# if DEBUG:
571571
# print("DEBUG: sending query:", sql)
572572
if isinstance(sql, str):
573+
sql = sql.replace("json_extract(checkpoint, concat('$.channel_versions.', channel))",
574+
"""json_extract(checkpoint, concat('$.channel_versions."', channel, '"'))""")
573575
sql = sql.encode(self.encoding, "surrogateescape")
574576
self._execute_command(COMMAND.COM_QUERY, sql)
575577
self._affected_rows = self._read_query_result(unbuffered=unbuffered)

0 commit comments

Comments
 (0)
0