summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/firebird/Clob.hxx
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2017-12-13 13:46:39 +0100
committerTamás Bunth <btomi96@gmail.com>2017-12-28 11:28:20 +0100
commitf80b51ae441e3483a2e9b77a30b932d4e8fba192 (patch)
treedcfe2a659fe440c241b65483702a982b8ad33aee /connectivity/source/drivers/firebird/Clob.hxx
parente7a80ddb91c44711296aa996bf00242edbfba32d (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/Clob.hxx')
-rw-r--r--connectivity/source/drivers/firebird/Clob.hxx2
1 files changed, 2 insertions, 0 deletions
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<connectivity::firebird::Blob> m_aBlob;
+ sal_Int64 m_nCharCount;
+
public:
Clob(isc_db_handle* pDatabaseHandle,
isc_tr_handle* pTransactionHandle,