Comments (2)
Sorry for no reply for such a long time.
I think you misunderstand connectOptions
. connectOptions
should be set before QSqlDatabase::open()
. You could think it is the options for connecting (opening) the database. So your code will not work because you set connectOptions
after opening the database. Please check the following code:
QSqlDatabase dbconn = QSqlDatabase::addDatabase("SQLITECIPHER");
dbconn.setDatabaseName("test_c.db");
dbconn.setPassword("test");
dbconn.setConnectOptions("QSQLITE_UPDATE_KEY=newtest");
if (!dbconn.open()) {
qDebug() << "Can not open Db!" << dbconn.lastError().driverText();
} else {
qDebug() << "Password changed";
}
dbconn.close();
from qtciphersqliteplugin.
Same problem updating password.
Why is this issue submitted in Apr, and now in Oct it still has no reply?
from qtciphersqliteplugin.
Related Issues (20)
- Not working on Windows 5.14.1 HOT 3
- Plugin doesn't work on Qt 5.14 but works ok Qt 5.13.2 HOT 2
- Database encrypted by this plugin can't open by wxsqlite3_shell HOT 1
- not build with qt 5.5.1 HOT 1
- best crypt options HOT 1
- SQL queries are not working when called from another thread
- Qt android 5.14.2 many unknow type name ... HOT 1
- Qt 6.0 error: no member named 'midRef' in 'QString' HOT 5
- wxsqlite3 RC4 encryption is not supported!!! HOT 3
- linker error while building with Qt 5.6.2 msvc 2013 32bit
- The problem of compilation failure under qt5.6
- Do not build with Qt 5.15 and Qt 6.2.1/6.2.4 HOT 13
- QT5.5无法编译
- Why people dont like mingw
- error: inlining failed in call to always_inline '_mm_aesimc_si128': target specific option mismatch HOT 3
- CRASH when when using SQLITECIPHER
- Db file encrypted by QtCipherSqlitePlugin v1.2 can't be opened by QtCipherSqlitePlugin v1.3 HOT 1
- can’t Compile in the linux platform
- Can't compile on MacOS/iOS with Qt 6.5.1 HOT 5
- Call undeclared function vaeseq_u8 on ARM arch HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtciphersqliteplugin.