Unsolved QSqlQuery different value() type
-
Checked again, on 5_5_1 has no problem.
first table: QVariant(uint, 1);
second table: QVariant(uint, 1);any ideas, what is the problem?
-
One unrelated note, you're not using QSqlDatabase correctly. There's no need to use new on it.
What OS and MySQL version are you using ?
-
OS: Windows 10
Mysql: 5.7.11 -
Did you only change Qt version or also MySQL ?
Did you rebuild the MySQL plugin ?
-
-
What size are both tables ?
-
first: 16KiB
second: 16KiB -
I meant number of rows of each tables.
-
first table 129
second 3 -
The plugin hasn't changed anything related to that between 5.5 and 5.6 so I wonder if it's a change in QVariant.
By the way, why do you need that information ? You should be able to just convert to int without any problem.