forked from LBRYCommunity/lbry-sdk
aws does not use memoryview
This commit is contained in:
parent
783f454f8e
commit
8390482d6c
1 changed files with 2 additions and 2 deletions
|
@ -199,8 +199,8 @@ def query(select, **constraints) -> Tuple[str, Dict[str, Any]]:
|
||||||
def interpolate(sql, values):
|
def interpolate(sql, values):
|
||||||
for k in sorted(values.keys(), reverse=True):
|
for k in sorted(values.keys(), reverse=True):
|
||||||
value = values[k]
|
value = values[k]
|
||||||
if isinstance(value, memoryview):
|
if isinstance(value, bytes):
|
||||||
value = f"X'{hexlify(bytes(value)).decode()}'"
|
value = f"X'{hexlify(value).decode()}'"
|
||||||
elif isinstance(value, str):
|
elif isinstance(value, str):
|
||||||
value = f"'{value}'"
|
value = f"'{value}'"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue