File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ namespace sqlite {
327
327
database (std::u16string(db_name.begin(), db_name.end()), config) {}
328
328
329
329
database (const std::u16string &db_name, const sqlite_config &config): database(db_name) {
330
- #ifdef SQLITE_HAS_CODEC
330
+ #ifdef ENABLE_SQLCIPHER
331
331
if (!config.key .empty ()) set_key (config.key );
332
332
#else
333
333
assert (config.key .empty () && " Encryption supported is disabled." );
@@ -357,7 +357,7 @@ namespace sqlite {
357
357
return sqlite3_last_insert_rowid (_db.get ());
358
358
}
359
359
360
- #ifdef SQLITE_HAS_CODEC
360
+ #ifdef ENABLE_SQLCIPHER
361
361
void set_key (const std::string &key) {
362
362
if (auto ret = sqlite3_key (_db.get (), key.data (), key.size ()))
363
363
exceptions::throw_sqlite_error (ret);
You can’t perform that action at this time.
0 commit comments