https://bugs.freedesktop.org/show_bug.cgi?id=68675
Priority: medium
Bug ID: 68675
Assignee: [email protected]
Summary: ODBC: support arbitrarily-sized bookmarks
Severity: enhancement
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: All
Status: UNCONFIRMED
Version: 4.2.0.0.alpha0+ Master
Component: Database
Product: LibreOffice
Currently, LibreOffice allocates (in ODBC connections) a buffer of size 20 for
bookmarks. This usually suffices, but there is no guarantee that it does.
The size is set in connectivity/source/drivers/odbcbase/OResultSet.cxx:
namespace
{
const SQLLEN nMaxBookmarkLen = 20;
}
This should be changed to querying the maximal size at runtime with
SQLColAttribute (called on column 0), and that's the size of the buffer we
need.
Hopefully this will not trigger bugs in ODBC drivers... Maybe we should take
the biggest of the value returned by SQLColAttribute and the current 20?
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs