summaryrefslogtreecommitdiff
path: root/connectivity/source/inc
diff options
context:
space:
mode:
authorOcke Janssen <Ocke.Janssen@sun.com>2009-10-29 12:00:17 +0100
committerOcke Janssen <Ocke.Janssen@sun.com>2009-10-29 12:00:17 +0100
commite7fe401266dd68fb882509e7bbd089bf3fe4fcb8 (patch)
treebff1b6b645921c20e03ba383abfc298c3a5fda66 /connectivity/source/inc
parent9613fb1c026d0320ef658000bf9f238c75181cb4 (diff)
#i106422# assure that the sequence stays alive when set binary data
Diffstat (limited to 'connectivity/source/inc')
-rw-r--r--connectivity/source/inc/odbc/OBoundParam.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/connectivity/source/inc/odbc/OBoundParam.hxx b/connectivity/source/inc/odbc/OBoundParam.hxx
index 31d3dde82b..a2b5a4cceb 100644
--- a/connectivity/source/inc/odbc/OBoundParam.hxx
+++ b/connectivity/source/inc/odbc/OBoundParam.hxx
@@ -119,6 +119,11 @@ namespace connectivity
paramInputStreamLen = len;
}
+ void setSequence(const ::com::sun::star::uno::Sequence< sal_Int8 >& _aSequence)
+ {
+ aSequence = _aSequence;
+ }
+
//--------------------------------------------------------------------
// getInputStream
// Gets the input stream for the bound parameter
@@ -191,6 +196,7 @@ namespace connectivity
// data is in native format.
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream> paramInputStream;
+ ::com::sun::star::uno::Sequence< sal_Int8 > aSequence;
// When an input stream is
// bound to a parameter, the
// input stream is saved