qt_mysql_driver icon indicating copy to clipboard operation
qt_mysql_driver copied to clipboard

QSqlDriver::hasFeature(Transactions) returns false

Open sadeqAlbana opened this issue 3 years ago • 3 comments

so I'm not sure if this is a problem related to the linked dll or the compiled plugin or some incompatibility between the server and the connector but on windows Qt 5.15.3 and mysql server 8.0.29(on a linux host), this problem occurs.

sadeqAlbana avatar Jul 21 '22 23:07 sadeqAlbana

Hi,

Qt 5.15.3

Which MySQL driver are you using? I wasn't able to provide a release for that particular Qt version yet

thecodemonkey86 avatar Jul 22 '22 11:07 thecodemonkey86

sorry, it's Qt 5.15.2 MSVC64, got it confused with my ubuntu installation.

sadeqAlbana avatar Jul 22 '22 16:07 sadeqAlbana

I can confirm this happens using Qt 5.15.2, but I currently don't understand why. With Qt 6.3.1 it's correct, using the same MySQL-Server (I got v8.0.21) and the same MySQL library. On the other hand, transactions work for me correctly anyway (i.e beginTransaction, rollbackTransaction and commitTransaction return true and leave the database in the expected state), even though hasFeature(Transactions) returns false

thecodemonkey86 avatar Jul 22 '22 22:07 thecodemonkey86