flutter_sqlcipher
flutter_sqlcipher copied to clipboard
crash on an exception when wrong database password provided
When trying to open a database with wrong password, the app crash on the following exception:
Exception has occurred. SqfliteDatabaseException (DatabaseException(file is not a database: , while compiling: select count(*) from sqlite_master;))
that happen at the rethrow; at line 110 in factory_mixin.dart
This happen even when sqflite.openDatabase() is called from inside a try block so I guess the error is not correctly handled all the way back to the openDatabase function.