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