diff options
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); } |