I am using wxsqlite.dll (with encryption) with zeos ver 7.14 and has no problem with the components so far until I
upgrade to zeos ver7.2.6 today. With the new version, I cannot connect to encrypted sqlite databases which any more.
Error msg: file is not a database (see attached image for more details).
Any clue? or should I revert to old version first?
Code: Select all
with Zdb1 do
begin
Disconnect;
Database := ed1DB.Text;
if Database > '' then
begin
showmessage('0');
Connected := True; //error occurs after this
showmessage('1');
ExecuteDirect('SELECT wxsqlite3_config(''cipher'','+ QuotedStr('chacha20') + ');');
ExecuteDirect('PRAGMA key=' + Quotedstr(ed2Password.Text) + ';') ;
end;
end;