diff options
| author | 2025-01-16 01:58:22 -0500 | |
|---|---|---|
| committer | 2025-01-16 01:58:22 -0500 | |
| commit | a5ae79be08125b31bb6b8d9703090a98c6fd2e30 (patch) | |
| tree | 569ee612c9de85b2bb423efa485688ef1d43852e /Plugins/DbAndroid/dbandroidinstance.cpp | |
| parent | 21966b4f924b0a1933d9662e75ff253bd154fdb7 (diff) | |
| parent | 81a21e6ce040e7740de86340c8ea4dba30e69bc3 (diff) | |
Update upstream source from tag 'upstream/3.4.13+dfsg'
Update to upstream version '3.4.13+dfsg'
with Debian dir bf81ee0219cb8e4562a4751df17d75814772d2d6
Diffstat (limited to 'Plugins/DbAndroid/dbandroidinstance.cpp')
| -rw-r--r-- | Plugins/DbAndroid/dbandroidinstance.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Plugins/DbAndroid/dbandroidinstance.cpp b/Plugins/DbAndroid/dbandroidinstance.cpp index c1b5629..62a42c4 100644 --- a/Plugins/DbAndroid/dbandroidinstance.cpp +++ b/Plugins/DbAndroid/dbandroidinstance.cpp @@ -124,6 +124,17 @@ Db* DbAndroidInstance::clone() const return new DbAndroidInstance(plugin, name, path, connOptions); } +bool DbAndroidInstance::isTransactionActive() const +{ + // FIXME: Since there is no way to detect active transaction by PRAGMA or SQL function, + // this plugin cannot just test this state. It could potentially be implemented by tracking BEGIN/END keywords + // as first keywords in executed queries, but it will require more work and testing. + // + // Current consiequence of negleting this is that if user uses import() function enclosed with BEGIN & END, + // the query will fail due to already active transaction. In that case user needs to skip the BEGIN & END. + return false; +} + bool DbAndroidInstance::isOpenInternal() { return (connection && connection->isConnected()); |
