summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorTamás Bunth <btomi96@gmail.com>2017-04-08 11:44:41 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2017-04-10 06:16:12 +0200
commit1b81754f3f269d06f66fd5b56037ff79138ae512 (patch)
treee3089c5205653da7469237546b6771451d3c5550 /connectivity
parent175c0fa9fc5ab6d791eca67ded404adf85243344 (diff)
tdf#106866 query character size instead of bytes
Change-Id: I7639fb1accdf728a8170ddb7dc9caf84bad8d3ef Reviewed-on: https://gerrit.libreoffice.org/36289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index a7e89b21d700..bb1ac1d449dd 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -1126,7 +1126,8 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
// for domains, whether a specific field is nullable is set in relfields,
// this is also the one we manually fiddle when changin NULL/NOT NULL
// (see Table.cxx)
- "relfields.RDB$NULL_FLAG " // 11
+ "relfields.RDB$NULL_FLAG, " // 11
+ "fields.RDB$CHARACTER_LENGTH " // 12
"FROM RDB$RELATION_FIELDS relfields "
"JOIN RDB$FIELDS fields "
"on (fields.RDB$FIELD_NAME = relfields.RDB$FIELD_SOURCE) "
@@ -1192,7 +1193,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
{
case SQL_TEXT:
case SQL_VARYING:
- aColumnSize = xRow->getShort(8);
+ aColumnSize = xRow->getShort(12);
break;
case SQL_SHORT:
case SQL_LONG: