From 41d31d5db80820dc679cd8ee4f2322d8816a0dd7 Mon Sep 17 00:00:00 2001 From: Laurent DEBOMY Date: Wed, 11 Jun 2025 11:37:23 +0200 Subject: [PATCH] Allows LibreOffice's Base flat file connector to accept more than 65,534 characters per line. The maximum number of columns is 16,384, allowing 262,144 characters per line gives 16 characters per field. Edit connectivity/source/drivers/flat/ETable.cxx Change-Id: I11e44879b31c872c9c74225fe1c9021edd4930a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186360 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/drivers/flat/ETable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx index 73b4f04bf668..cbf2f1805be5 100644 --- a/connectivity/source/drivers/flat/ETable.cxx +++ b/connectivity/source/drivers/flat/ETable.cxx @@ -855,7 +855,7 @@ bool OFlatTable::readLine(sal_Int32 * const pEndPos, sal_Int32 * const pStartPos { if (pStartPos) *pStartPos = static_cast(m_pFileStream->Tell()); - m_pFileStream->ReadByteStringLine(m_aCurrentLine, nEncoding); + m_pFileStream->ReadByteStringLine(m_aCurrentLine, nEncoding, 262144); if (m_pFileStream->eof()) return false;