diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2017-12-13 13:46:39 +0100 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2017-12-28 11:28:20 +0100 |
commit | f80b51ae441e3483a2e9b77a30b932d4e8fba192 (patch) | |
tree | dcfe2a659fe440c241b65483702a982b8ad33aee /connectivity/source/drivers/firebird/PreparedStatement.hxx | |
parent | e7a80ddb91c44711296aa996bf00242edbfba32d (diff) |
tdf#104734 Firebird improve XClob implementation
Create a more effective implementation of XClob::length() and
XClob::getSubString() methods, where string is read segment-by-segment
instead of reading the whole underlying blob. That way it is possible to
handle big texts which would not fit into memory.
Also allow reading Clob data from a resultset with getString() and
writing it in a prepared statement with setString().
Implement XPreparedStatement::setClob(). Also implement a private
version of setClob() for creating a clob from OUString:
Allow the creation of a clob column with GUI by adding a new type in
ODataBaseMetaData::getTypeInfo().
Change-Id: Ibcbbdd80e8eed5e2a3fe55b0fa196401f1bcbcdf
Reviewed-on: https://gerrit.libreoffice.org/47093
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Tested-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'connectivity/source/drivers/firebird/PreparedStatement.hxx')
-rw-r--r-- | connectivity/source/drivers/firebird/PreparedStatement.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.hxx b/connectivity/source/drivers/firebird/PreparedStatement.hxx index 81910ad1f3dd..19f19d423c7b 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.hxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.hxx @@ -78,6 +78,7 @@ namespace connectivity * Assumes that all necessary mutexes have been taken. */ void closeBlobAfterWriting(isc_blob_handle& rBlobHandle); + void setClob(sal_Int32 nParamIndex, const OUString& rStr); protected: virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, |