diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-14 21:37:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-14 21:37:51 +0000 |
commit | 6e9ce9fba1344611e35e5d2c1e5ebde682858f6a (patch) | |
tree | 33c83f0712d2156b79bb18c73348131f96068958 /src/cite | |
parent | 89c017c3d5126cabd96acce26f538b37b48c085f (diff) | |
download | tellico-6e9ce9fba1344611e35e5d2c1e5ebde682858f6a.tar.gz tellico-6e9ce9fba1344611e35e5d2c1e5ebde682858f6a.zip |
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
Diffstat (limited to 'src/cite')
-rw-r--r-- | src/cite/ooo/interface.cpp | 14 |
1 files 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 <com/sun/star/sdbc/XResultSetUpdate.hpp> #include <com/sun/star/sdbc/XRow.hpp> #include <com/sun/star/sdbc/XRowUpdate.hpp> -#include <com/sun/star/sdbc/STQLException.hpp> +#include <com/sun/star/sdbc/SQLException.hpp> #include <com/sun/star/sdb/CommandType.hpp> #include <com/sun/star/document/XEventListener.hpp> #include <com/sun/star/document/XEventBroadcaster.hpp> @@ -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); } |