我试过了
SQL
CREATE TABLE table_name (key BYTEA, key_uuid UUID)
Python
cur.execute(f"INSERT INTO table_name (key, key_uuid) VALUES({Fernet.generate_key()}, uuid_generate_v4())")
它给出了一个错误:
psycopg2.errors.InvalidTextRepresentation: "j" is not a valid binary digit
LINE 1: ...me (key, key_uuid) VALUES(b'jBB72dwn...
^
还是我理解错了..?