summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-06-11 19:24:03 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-06-12 08:23:25 +0000
commit8c46e9ddf071b6fa5db83276d82ca23d459e8193 (patch)
treed59dc2d81c72f51cc51a9db26b57f4d1f15c3395
parent1665c84d5416175e5761ff48fdd7e2212bd2b11c (diff)
Related fdo#79714 OSX-crash opening query or table in embedded Firebird ODB
See https://bugs.freedesktop.org/attachment.cgi?id=100839 and other comments Change-Id: I1187b171caf54997f5e8850ade4a3fb35ad9ec29 Reviewed-on: https://gerrit.libreoffice.org/9742 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--connectivity/source/drivers/firebird/StatementCommonBase.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.cxx b/connectivity/source/drivers/firebird/StatementCommonBase.cxx
index dfff5d7e499c..4820da481ad6 100644
--- a/connectivity/source/drivers/firebird/StatementCommonBase.cxx
+++ b/connectivity/source/drivers/firebird/StatementCommonBase.cxx
@@ -194,6 +194,7 @@ void OStatementCommonBase::prepareAndDescribeStatement(const OUString& sql,
free(pOutSqlda);
pOutSqlda = (XSQLDA*) malloc(XSQLDA_LENGTH(n));
pOutSqlda->version = SQLDA_VERSION1;
+ pOutSqlda->sqln = n;
aErr = isc_dsql_describe(m_statusVector,
&m_aStatementHandle,
1,