Index: mythmusic/mythmusic/dbcheck.cpp
===================================================================
--- mythmusic/mythmusic/dbcheck.cpp	(revision 20431)
+++ mythmusic/mythmusic/dbcheck.cpp	(working copy)
@@ -41,9 +41,7 @@
 
     while (thequery != "")
     {
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::NoError)
+	if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
Index: mytharchive/mytharchive/dbcheck.cpp
===================================================================
--- mytharchive/mytharchive/dbcheck.cpp	(revision 20431)
+++ mytharchive/mytharchive/dbcheck.cpp	(working copy)
@@ -43,9 +43,7 @@
 
     while (thequery != "")
     {
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::NoError)
+        if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
Index: mythbrowser/mythbookmarkmanager/browserdbutil.cpp
===================================================================
--- mythbrowser/mythbookmarkmanager/browserdbutil.cpp	(revision 20431)
+++ mythbrowser/mythbookmarkmanager/browserdbutil.cpp	(working copy)
@@ -34,9 +34,7 @@
 
     while (thequery != "")
     {
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::NoError)
+        if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
Index: mythweather/mythweather/dbcheck.cpp
===================================================================
--- mythweather/mythweather/dbcheck.cpp	(revision 20431)
+++ mythweather/mythweather/dbcheck.cpp	(working copy)
@@ -35,9 +35,7 @@
     while (it != updates.end())
     {
         QString thequery = *it;
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::NoError)
+        if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
Index: mythgallery/mythgallery/dbcheck.cpp
===================================================================
--- mythgallery/mythgallery/dbcheck.cpp	(revision 20431)
+++ mythgallery/mythgallery/dbcheck.cpp	(working copy)
@@ -41,9 +41,7 @@
 
     while (thequery != "")
     {
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::NoError)
+        if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
Index: mythflix/mythflix/dbcheck.cpp
===================================================================
--- mythflix/mythflix/dbcheck.cpp	(revision 20431)
+++ mythflix/mythflix/dbcheck.cpp	(working copy)
@@ -39,9 +39,7 @@
 
     while (thequery != "")
     {
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::None)
+        if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
Index: mythgame/mythgame/dbcheck.cpp
===================================================================
--- mythgame/mythgame/dbcheck.cpp	(revision 20431)
+++ mythgame/mythgame/dbcheck.cpp	(working copy)
@@ -41,9 +41,7 @@
 
     while (thequery != "")
     {
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::None)
+        if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
Index: mythnews/mythnews/dbcheck.cpp
===================================================================
--- mythnews/mythnews/dbcheck.cpp	(revision 20431)
+++ mythnews/mythnews/dbcheck.cpp	(working copy)
@@ -42,9 +42,7 @@
 
     while (thequery != "")
     {
-        query.exec(thequery);
-
-        if (query.lastError().type() != QSqlError::NoError)
+        if (!query.exec(thequery))
         {
             QString msg =
                 QString("DB Error (Performing database upgrade): \n"
