Skip to content

Commit 7e3fdd9

Browse files
committed
fix: changed scramp lib import to internal and changed pg8000.paramstyle varible value to const
1 parent 548c2d8 commit 7e3fdd9

File tree

1 file changed

+2
-3
lines changed
  • mamonsu/plugins/pgsql/driver/pg8000

1 file changed

+2
-3
lines changed

mamonsu/plugins/pgsql/driver/pg8000/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
from distutils.version import LooseVersion
1414
from struct import Struct
1515
from time import localtime
16-
import pg8000
1716
from json import loads, dumps
1817
from os import getpid
19-
from scramp import ScramClient
18+
from mamonsu.plugins.pgsql.driver.pg8000.scramp import ScramClient
2019
import enum
2120
from ipaddress import (
2221
ip_address, IPv4Address, IPv6Address, ip_network, IPv4Network, IPv6Network)
@@ -792,7 +791,7 @@ def __init__(self, connection, paramstyle=None):
792791
self._row_count = -1
793792
self._cached_rows = deque()
794793
if paramstyle is None:
795-
self.paramstyle = pg8000.paramstyle
794+
self.paramstyle = 'format'
796795
else:
797796
self.paramstyle = paramstyle
798797

0 commit comments

Comments
 (0)