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:12 +0000
commit939c5b7c2421b226e555cfd14d35d699be787b32 (patch)
treefbe81502325304769292a1499700c2488ba5a476
parent80f5fc4e6a50581e0ec55cd51bbe0821102d864b (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 Cherry-picked from 0acd0ed3a58698a34e11dd82f3368a983f8530df Change-Id: I1187b171caf54997f5e8850ade4a3fb35ad9ec29 Reviewed-on: https://gerrit.libreoffice.org/9741 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 381b14bde1de..49415fac4954 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,