From f80b51ae441e3483a2e9b77a30b932d4e8fba192 Mon Sep 17 00:00:00 2001 From: Tamas Bunth Date: Wed, 13 Dec 2017 13:46:39 +0100 Subject: tdf#104734 Firebird improve XClob implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Tamás Bunth --- connectivity/source/drivers/firebird/Clob.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'connectivity/source/drivers/firebird/Clob.hxx') diff --git a/connectivity/source/drivers/firebird/Clob.hxx b/connectivity/source/drivers/firebird/Clob.hxx index d435312f9f36..738b0ce86c64 100644 --- a/connectivity/source/drivers/firebird/Clob.hxx +++ b/connectivity/source/drivers/firebird/Clob.hxx @@ -38,6 +38,8 @@ namespace connectivity */ rtl::Reference m_aBlob; + sal_Int64 m_nCharCount; + public: Clob(isc_db_handle* pDatabaseHandle, isc_tr_handle* pTransactionHandle, -- cgit