Skip to content

rekey fails with no error message #164

@rogerbinns

Description

@rogerbinns

I was trying to change the page size for testing. The rekey pragma fails with SQLITE_ERROR and doesn't set any error message.

import apsw

con = apsw.Connection("testdb")
con.pragma("key", "hello")
con.execute("create table x(y); insert into x values(randomblob(32768))")

# rekey
con.pragma("cipher", "aes128cbc")
con.pragma("legacy", "1")
con.pragma("legacy_page_size", 16384)
con.pragma("rekey", "hello")
Traceback (most recent call last):
  File "/space/mc/issue.py", line 11, in <module>
    con.pragma("rekey", "hello")
  File "src/cursor.c", line 959, in APSWCursor_execute.sqlite3_prepare_v3
    AddTraceBackHere(__FILE__, __LINE__, "APSWCursor_execute.sqlite3_prepare_v3", "{s: O, s: O}",
apsw.SQLError: SQLError: SQL logic error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions