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
v3.5.13-sru
tpearson 13 years ago
parent 89c017c3d5
commit 6e9ce9fba1

@ -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);
}

Loading…
Cancel
Save