From 6e9ce9fba1344611e35e5d2c1e5ebde682858f6a Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 14 Aug 2011 21:37:51 +0000 Subject: [PATCH] Convert accidental instances of STQL to the proper SQL git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1247182 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/cite/ooo/interface.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cite/ooo/interface.cpp b/src/cite/ooo/interface.cpp index 3e88852..b1cf69e 100644 --- a/src/cite/ooo/interface.cpp +++ b/src/cite/ooo/interface.cpp @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include #include @@ -350,9 +350,9 @@ bool OOOHandler::Interface::insertRecords(Cite::Map& fields) { try { rowSet->execute(); - } catch(sdbc::STQLException& e) { + } catch(sdbc::SQLException& e) { DEBUG(OU2O(s)); - DEBUG(OUSTR("SQL error - ") + e.STQLState); + DEBUG(OUSTR("SQL error - ") + e.SQLState); return false; } catch(Exception& e) { DEBUG(OU2O(s)); @@ -380,9 +380,9 @@ bool OOOHandler::Interface::insertRecords(Cite::Map& fields) { try { rowSet->execute(); - } catch(sdbc::STQLException& e) { + } catch(sdbc::SQLException& e) { DEBUG(OU2O(s)); - DEBUG(OUSTR("SQL error(2) - ") + e.STQLState); + DEBUG(OUSTR("SQL error(2) - ") + e.SQLState); return false; } catch(Exception& e) { DEBUG(OU2O(s)); @@ -412,8 +412,8 @@ bool OOOHandler::Interface::insertRecords(Cite::Map& fields) { std::cout << s << " = " << value << std::endl; try { rowUpdate->updateString(i, O2OU(value)); - } catch(sdbc::STQLException& e) { - DEBUG(OUSTR("SQL error(3) - ") + e.STQLState); + } catch(sdbc::SQLException& e) { + DEBUG(OUSTR("SQL error(3) - ") + e.SQLState); } catch(Exception& e) { DEBUG(OUSTR("General error(3) - ") + e.Message); }