Update:
The Qt 4.5.1 MySQL driver as packaged with Fedora 11 is broken.
I downloaded the Qt 4.4.3 source tarball and built from source (using the ./configure options below) and the same code which worked fine with Qt 4.3.3/4 but failed under Qt. 4.5.1 worked fine once more. It would appear that the changes in the Qt 4.5 QtMySQL driver (to first attempt to execute all queries as PREPARED queries) do not correctly fall back to conventional mode, or perhaps do but fail to clear the initially-encountered error code. Either way, the solution for now for me is to build using the Qt 4.4.3 source distribution.
./configure -debug -shared -no-fast -largefile -exceptions -accessibility -stl \
-qt-sql-mysql -system-sqlite -qt3support -xmlpatterns \
-phonon-backend -svg -webkit -assistant-webkit -system-zlib -qt-gif \
-system-libtiff -system-libpng -system-libmng -system-libjpeg -openssl -optimized-qmake \
-nis -pch -dbus -opengl -sm -xshape -xinerama -xcursor \
-xfixes -xrandr -xrender -fontconfig -tablet -xkb -glib
./configure -debug -shared -no-fast -largefile -exceptions -accessibility -stl \
-qt-sql-mysql -system-sqlite -qt3support -xmlpatterns \
-phonon-backend -svg -webkit -assistant-webkit -system-zlib -qt-gif \
-system-libtiff -system-libpng -system-libmng -system-libjpeg -openssl -optimized-qmake \
-nis -pch -dbus -opengl -sm -xshape -xinerama -xcursor \
-xfixes -xrandr -xrender -fontconfig -tablet -xkb -glib
To copy to clipboard, switch view to plain text mode
(Note: When I have time I will grab a source distribution of Qt 4.5.1 and test against it to verify that it's not somehow a Fedora 11 packaging issue).
Bookmarks