バイナリデータ(ワールプールハッシュ)をPGテーブルに挿入しようとしていますが、エラーが発生します:
TypeError: not all arguments converted during string formatting
コード:
cur.execute("""
INSERT INTO
sessions
(identity_hash, posted_on)
VALUES
(%s, NOW())
""", identity_hash)
挿入する前にconn.Binary( "identity_hash")を変数に追加しようとしましたが、同じエラーが発生します。
Identity_hash列はbyteaです。
何か案は?