mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-03 12:10:55 -06:00
Fixes the qtIdent function in the psycopg2 driver about not taking care
of double quote within it. The 'replace' function of immutable type string do create a new instance of type string, which needed to be reassgined to the variable 'value'. Reported By: Murtuza Zabuawala
This commit is contained in:
parent
b32496f71a
commit
639a3ed0ac
@ -894,7 +894,7 @@ class Driver(BaseDriver):
|
||||
value = val
|
||||
|
||||
if (Driver.needsQuoting(val, True)):
|
||||
value.replace("\"", "\"\"")
|
||||
value = value.replace("\"", "\"\"")
|
||||
value = "\"" + value + "\""
|
||||
|
||||
res = ((res and res + '.') or '') + value
|
||||
@ -918,7 +918,7 @@ class Driver(BaseDriver):
|
||||
value = val
|
||||
|
||||
if (Driver.needsQuoting(val, False)):
|
||||
value.replace("\"", "\"\"")
|
||||
value = value.replace("\"", "\"\"")
|
||||
value = "\"" + value + "\""
|
||||
|
||||
res = ((res and res + '.') or '') + value
|
||||
|
Loading…
Reference in New Issue
Block a user