9001 Commits
Author SHA1 Message Date
Neil Roberts e6176fc4f0 sqliterator: Use rtl::Reference::get() instead of &*
Using &* can be problematic if the pointer is null. In this case it
doesn’t matter, but using Reference::get() is probably easier to
understand anyway. This also paves the way for a later compiler plugin
to check for this.

Change-Id: I2361761496648eaaa1e245912ac19aa130b38863
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211842
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-10-07 19:14:54 +02:00
Caolán McNamara ab7a107b82 hsqldb: keep the files of an embedded database in a private directory
hsqldb writes its own files next to the database path, and that path was
the document's location. Put each embedded database in a subdirectory
of a directory the driver owns and removes.

Change-Id: I17d2a7e365c51c743d8c359f7b1794b810a8bcc5
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/13818
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 8008e62f8dd6f2b34c35055d070a0b1ecea8826f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211812
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-10-05 20:32:13 +02:00
Caolán McNamara 4e9a1bf3a8 odbc: quote connection string values that contain a separator
A DSN, user or password with a ";" in it, or starting with "{", gets
split by the driver manager, so put it in braces to pass it as one value.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I14d975c319e65921fe06d8be7125c13fc0b93d77
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/14172
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit 690a8a312214cbe154773d287dce8e77f84f62aa)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211804
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-10-05 15:31:31 +02:00
Vissarion Fisikopoulos 68bed36a97 tdf#153057, tdf#173589 enable Base to filter date and time values
This patch implements and fixes cases for filtering. In particular
the cases for form-based and dialogue-based filtering in forms for
data and time. Additionally, the cases for time values in Table
Data View.

A specific limitation comes from firebird which accepts only 4 digits
for nanoseconds in time values. The data are rounded to that digit
for firebird while still support full precision (up to 9 digits)
for other engines. This is implemented using the driver's metadata
functions.

Unit tests are added.

Change-Id: I89435da239c898f3c782fcc9f78f98caf4223f62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211298
Reviewed-by: Vissarion Fisikopoulos <vfisikop@libreoffice.org>
Tested-by: Jenkins
2026-09-22 15:54:40 +02:00
Caolán McNamara b2f721869d firebird: size the setBytes grow check by sqllen
8000 was the default width the hsqldb migration gives a VARBINARY
column, but sqldata is allocated from sqllen, which is less than that
for a narrower column, so test against sqllen instead

since:

commit 54ddc4ff4c
Date:   Sat May 26 18:01:15 2018 +0200

    tdf#117446: FB mig, (VAR)BINARY, fix memory management

Change-Id: I2b55e3842a77f04a4bd0d2ae324b3c4c09988c37
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/12743
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 97419bee2b14ef6a977414f7fece703aa7d2a49c)
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/13046
(cherry picked from commit aa92a88e5e3e397fda345c0701774709b75b44dc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211279
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-09-22 13:00:26 +02:00
Andrea Gelmini be7ff6a857 Fix typos in code and comments + some reformatting
Change-Id: Ic6fe197734655a2591a6730d07f23d4222a278f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210564
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 22:06:44 +02:00
Julien Nabet 296b49f581 Related tdf#150928: replace character set by encoding (sc/part 3+connectivity)
Change-Id: I78d3c989be9e02e39d646b3c1eb672e3f37bd43c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209380
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-07 10:15:23 +02:00
Andrea Gelmini 4b2224e810 Fix typos
Change-Id: Ib8ad2c65f6200dbcbf16ba0e3aff167d54240dd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209933
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 14:35:12 +02:00
Andrea Gelmini b2987ad577 Fix typos
Change-Id: I3fbc308fa4c51674e90b27cff704830904a372f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209889
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 14:25:24 +02:00
Andrea Gelmini 7ea3d23dab Fix typos
Change-Id: I66a132543f08b1ca84241e50fcfbc1d647e49dd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209886
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 11:24:49 +02:00
Andrea Gelmini fab67da209 Fix typos
Change-Id: I562dc88fb193c4bba8904a524cbd6b8596cf4bb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209887
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 11:06:25 +02:00
Andrea Gelmini a3e76613a0 Fix typos
Change-Id: I728a720c0ab6889a901b589d636b904e69f53c82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209888
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-25 10:41:49 +02:00
Andrea Gelmini cf0a1268e3 Fix typos
Change-Id: Ib8964b0b98005da480826cfdd2c64bd68c88575c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209460
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-22 10:15:11 +02:00
Mike Kaganski 6214c82bd0 Fix signed/unsigned mismatch with MSVC 2026
After commit db92d0be756305ec0b1e122a1d00333477c17ba5 (dbase: apply
one consistent key-per-page limit in the .ndx index, 2026-08-19) a
local CODA-W build failed with:

 C:/lo/online/engine/connectivity/source/drivers/dbase/dindexnode.cxx(518): error C2220: the following warning is treated as an error
 C:/lo/online/engine/connectivity/source/drivers/dbase/dindexnode.cxx(518): warning C4018: '<': signed/unsigned mismatch
 C:/lo/online/engine/connectivity/source/drivers/dbase/dindexnode.cxx(599): warning C4018: '<': signed/unsigned mismatch

The problem was the change of type of nNewCount from sal_uInt16 to
sal_uInt32, which made the following comparison warn:

    if (nNewCount < (nMaxNodes_2 * 2))

nMaxNodes_2 is sal_uInt16, but multiplication gives int; before the
change, nNewCount was promoted from sal_uInt16 to int as well; but
now it isn't promoted, hence the problem.

Fix it by making sure that multiplication produces an unsigned value.

Change-Id: I056fa7517834b64706be27b4318bb21c42ecfebb
Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9581
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit d68d84af021b67ceaf9f94294722c2e97ee9e963)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209455
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-08-21 18:46:35 +02:00
Caolán McNamara 2be1bbcc11 dbase: apply one consistent key-per-page limit in the .ndx index
db_maxkeys came from the index header, the key count of a page came from the
page itself, and node access used neither. Now the header value is capped to
the number of keys a DINDEX_PAGE_SIZE page can hold for the given key length,
each page keeps its own capacity and caps its key count to it, and node
positions are clamped to the same bound, so all three agree.

ODbaseIndex::CreateImpl worked out db_maxkeys from a four byte page header
while the reader counts eight bytes of page header, so use eight here too and
write an index the reader agrees with.

ONDXPage::Remove asserted on a position past the key count and then carried on
regardless, so return early instead.

ONDXPage::Merge added the key counts of two pages together in a sal_uInt16, so
widen the sum to sal_uInt32.

nValue was a file-level static shared by the page read and write operators for
no reason, so make it a local in the reader and write rPage.nCount directly.

The two GetChild overloads would load a child page that is already on the chain
of parents the descent came down, so leave such a page unread rather than
descending into a page we are inside. ONDXPage::Merge and ONDXPage::PrintPage
can then be handed a page that was left unread, so both check for one with
nothing loaded.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id51bf8368099447df41aaacbaebba7783c5769e2
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9518
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit db92d0be756305ec0b1e122a1d00333477c17ba5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209449
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-21 18:46:30 +02:00
Marios 377968ba5f tdf#171853 Use endsWith instead of checking lastIndexOf at string end
Change-Id: I6ebb7f9b8e39c9a22c9aaa86509048bbcab51db4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209374
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2026-08-21 15:04:07 +02:00
Caolán McNamara 4dc10d60db firebird: call writeFile outside the SAL_WARN_IF condition
a product build doesn't evaluate the condition, so none of the conf
files were written there.

since:

commit b8407b18adf3c6d552d54d7b6657539e2769afd6
Date:   Tue Jul 28 17:08:38 2026 +0000

    firebird: name the modules of a system firebird by absolute path

and:

commit 6ab71a109bd8a8335208c9faa37a3cfa94523148
Date:   Tue Jul 28 11:05:37 2026 +0000

    Resolves: tdf#172935 Connection from Base to external firebird database refused

Change-Id: I8c66ae59774a161c8c135b2dea772810d92495dd
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/8183
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/8282
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit ee9ee3e66d88c712c4374635ca9057292012fe32)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209295
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-08-19 00:20:50 +02:00
Andreas Heinisch ff9c0cdc28 tdf#149434 - Use the last separator as table names cannot contain dots
Unlike table names schema names may contain dots.

Change-Id: I3e918ce8f08e6e013b3872452eb6f966e4367751
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208975
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-08-13 11:01:35 +02:00
Caolán McNamara 09dbbe16b0 firebird: name the modules of a system firebird by absolute path
Debian patches firebird to resolve its plugins, intl and conf
directories under the FIREBIRD variable (instead of where it was built)
and we want point that variable at a private directory. But then the
modules aren't loaded and no database opens.

So write a replacement plugins.conf that lists the absolute path of each
plugin module (and the intl conf files) with their macros expanded.

each lib<Name>.so (otherwise found by default) with no entry names gets
an entry of its own.

Change-Id: I2696d7197394b7fe9b7739732deadd2cb2e01acc
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/7989
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit b8407b18adf3c6d552d54d7b6657539e2769afd6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208882
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-31 15:03:50 +02:00
Caolán McNamara 99bf522289 Resolves: tdf#172935 Connection from Base to external firebird database refused
there is one firebird engine per process and it reads its configuration once
from the directory we set up, so a .fdb the user picked somewhere else could
not be attached. firebird resolves a name in databases.conf before it treats
it as a path, so give the file a name there and pass firebird that name,
dropped again when the connection is disposed.

since:

commit 520d8173cef39a4da85b3ba21bdaaa3150384c25
Date:   Sun Jul 12 12:10:41 2026 +0000

    firebird: keep each embedded database's files in one directory

Change-Id: I4872a4e2165c4701bfb20be5dcd8c119b1723125
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/7990
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 6ab71a109bd8a8335208c9faa37a3cfa94523148)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208773
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-30 15:54:50 +02:00
Xisco Fauli c3f05fb301 Reapply "firebird: keep each embedded database's files in one directory"
This reverts commit 23a5d0dc30.

it also contains https://gerrit.collaboraoffice.com/c/core/+/7093
"firebird: upper-case the DatabaseAccess Restrict path on Windows"

Change-Id: I52ea962a51da19a112892d6a2497a7ddf682c579
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208208
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-19 10:49:43 +02:00
Xisco Fauli 23a5d0dc30 Revert "firebird: keep each embedded database's files in one directory"
This reverts commit c656bab4c9.

Reason for revert: it breaks the Windows build with
[_RUN_____] MigrationTest::testBinaryImport
warn:sfx.appl:12852:4132:sfx2/source/appl/app.cxx:148: No DDE-Service possible. Error: 16399
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1046: WinSalFrame::SetIcon(): Could not load large icon !
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1047: WinSalFrame::SetIcon(): Could not load small icon !
warn:comphelper:12852:4132:comphelper/source/misc/logging.cxx:65: EventLogger_Impl::impl_createLogger_nothrow: caught an exception! com.sun.star.uno.DeploymentException message: "component context fails to supply singleton com.sun.star.logging.LoggerPool of type com.sun.star.logging.XLoggerPool at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/logging/LoggerPool.hpp:38" context: class cppu::`anonymous namespace'::ComponentContext
warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'

unknown:0:MigrationTest::testBinaryImport
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD385300, SQLState: "", ErrorCode: 1, NextException: void: void}

warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_service_start'

warn:cppuhelper:12852:4132:cppuhelper/source/implbase.cxx:82: class com::sun::star::uno::Exception msg: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_service_start'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Connection.cxx:922
warn:dbaccess:12852:4132:dbaccess/source/core/dataaccess/ModelImpl.cxx:925:  com.sun.star.uno.DeploymentException message: "component context fails to supply service com.sun.star.security.DocumentDigitalSignatures of type com.sun.star.security.XDocumentDigitalSignatures at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/security/DocumentDigitalSignatures.hpp:79" context: class cppu::`anonymous namespace'::ComponentContext
MigrationTest::testBinaryImport finished in: 878ms
[_RUN_____] MigrationTest::testNumbers
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1046: WinSalFrame::SetIcon(): Could not load large icon !
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1047: WinSalFrame::SetIcon(): Could not load small icon !
warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'

unknown:0:MigrationTest::testNumbers
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD386320, SQLState: "", ErrorCode: 1, NextException: void: void}

warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'

warn:cppuhelper:12852:4132:cppuhelper/source/implbase.cxx:82: class com::sun::star::uno::Exception msg: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Connection.cxx:922
warn:dbaccess:12852:4132:dbaccess/source/core/dataaccess/ModelImpl.cxx:925:  com.sun.star.uno.DeploymentException message: "component context fails to supply service com.sun.star.security.DocumentDigitalSignatures of type com.sun.star.security.XDocumentDigitalSignatures at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/security/DocumentDigitalSignatures.hpp:79" context: class cppu::`anonymous namespace'::ComponentContext
MigrationTest::testNumbers finished in: 145ms
[_RUN_____] MigrationTest::testTime
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1046: WinSalFrame::SetIcon(): Could not load large icon !
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1047: WinSalFrame::SetIcon(): Could not load small icon !
warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'

unknown:0:MigrationTest::testTime
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD3863A0, SQLState: "", ErrorCode: 1, NextException: void: void}

warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'

warn:cppuhelper:12852:4132:cppuhelper/source/implbase.cxx:82: class com::sun::star::uno::Exception msg: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Connection.cxx:922
warn:dbaccess:12852:4132:dbaccess/source/core/dataaccess/ModelImpl.cxx:925:  com.sun.star.uno.DeploymentException message: "component context fails to supply service com.sun.star.security.DocumentDigitalSignatures of type com.sun.star.security.XDocumentDigitalSignatures at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/security/DocumentDigitalSignatures.hpp:79" context: class cppu::`anonymous namespace'::ComponentContext
MigrationTest::testTime finished in: 128ms
##Failure Location unknown## : Error
Test name: MigrationTest::testBinaryImport
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD385300, SQLState: "", ErrorCode: 1, NextException: void: void}

##Failure Location unknown## : Error
Test name: MigrationTest::testNumbers
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD386320, SQLState: "", ErrorCode: 1, NextException: void: void}

##Failure Location unknown## : Error
Test name: MigrationTest::testTime
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD3863A0, SQLState: "", ErrorCode: 1, NextException: void: void}

Failures !!!
Run: 3   Failure total: 3   Failures: 0   Errors: 3

Change-Id: I5a4c4b072cc1898340eac176d23a689a3cb67128
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208154
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-15 21:03:48 +02:00
Caolán McNamara 8cfa628be8 firebird: only write back an embedded database that was opened
When construct throws before the attach succeeds, the connection is
disposed with the temporary .fdb extracted but never opened, but
storeDatabase ran the backup service against it anyway.

Note whether the database was opened and skip the write back when it was
not.

Change-Id: I7c1bfdd880699d661e4b798fff441a357c141f12
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6703
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit a73db8b145af1c74cb181e094c0b7ccc4d92d8f0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208041
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-14 10:29:32 +02:00
Caolán McNamara 736210ff4c firebird: don't attach a database that is not in the normal backup state
A database we extract from a .odb is always in the normal backup state,
so refuse one that is not, we're not interested in the difference file
mode case.

firebird upstream attempt as:
https://github.com/FirebirdSQL/firebird/pull/9089

And do it manually for the system-firebird case.

Change-Id: Iff9ebbb075379ca47a7f7f5886b693ac23860566
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6702
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit e7ea381e87cadaf31bf1ad2213a23f17a6284d1c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208040
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-14 10:29:25 +02:00
Caolán McNamara c656bab4c9 firebird: keep each embedded database's files in one directory
Give the driver a directory of its own, extract each embedded database
into a subdirectory of it, and set DatabaseAccess so firebird keeps any
associated files it makes for a database in the same directory.

A distro firebird reads only firebird.conf from the directory the
FIREBIRD variable names and finds its other resources at their normal
absolute paths. A bundled firebird finds everything relative to it.

Change-Id: If082a30d2426e7942fc9dd48f7124928fc984434
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6701
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 520d8173cef39a4da85b3ba21bdaaa3150384c25)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208039
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-14 10:29:05 +02:00
Caolán McNamara cc5ac2a819 firebird: don't run an attached database's own event triggers
for the embedded and file cases suppress the database's ON CONNECT and
similar event triggers when attaching, they should not fire just because
the document was opened

Change-Id: I37edab43f25d8cb72cc6dcafd743045f96b4c2e6
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6700
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 36335ff89ea2309e99da02b449c9b35517cd6f9d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208029
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-13 17:36:08 +02:00
Andreas Heinisch 68ef2c72bb tdf#65685 - Treat constants in SELECT as leaf nodes instead of rules
Change-Id: I292175065255a4337dc426c8fbfd2ea6dd56638d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206981
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-06-19 17:00:43 +02:00
Noel Grandin b1712dadb7 the depth parameter to the configmgr open call has never done anything
Change-Id: I74c803a93f561d09d6ec8cccc9bdc764596f321a
Signed-off-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3591
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 758e96b21b067487931bb1e1f3c49815e976955e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206438
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-18 11:17:33 +02:00
Vissarion Fisikopoulos 67b51abd65 tdf#42713: maintain SQL comments in design view
When an SQL query has comments then those were deleted
when switching to design view. This is fixed and the comments
are maintained. In the case the query is edited in design
view then the comments are inevitably lost.

Change-Id: Ibcf6e36fce88a526c7340d352aca9859b1b3714e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205441
Tested-by: Jenkins
Reviewed-by: Vissarion Fisikopoulos <vfisikop@libreoffice.org>
2026-06-09 16:11:29 +02:00
Mike Kaganski 084e6e1ac7 Move ODatabaseMetaDataResultSet to use OPropertyContainerImplHelper
Simplifies the implementation, removing boilerplate.

Change-Id: Ic3b0d27178ba730144afadbab9a15b40719320d8
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/238
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit ed7d521ba17e11d281e1819078423897c349b5f1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205660
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-25 14:33:03 +02:00
Rareș-Constantin Rîjniță 1fe039c6f8 tdf#158237 use c++20 contains() instead of find() and end()
Change-Id: I6ea030b875fc6897fdba5c53c1114fd3dc17603d
Signed-off-by: Rareș-Constantin Rîjniță <rares.rijnita2005@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204971
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-05-13 07:00:52 +02:00
Vissarion Fisikopoulos ec73986ca7 tdf#153057 enable Base to filter date and time values with firebird embedded db
Add cases for date, time and timestamp data types in prepared statement
of firebird embedded database. Add unit tests for this particular case
and for testing the DBTypeConversion functions toDate, toTime,
toDateTime that used in the fix.

Change-Id: I91fd2322598b14f84a96f071ed029c9b3e64d51e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204841
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-06 16:48:48 +02:00
Krunal Baraskar 076d033de3 tdf#82579 Related: remove unnecessary premac.h/postmac.h header includes
The macOS headers included do not collide with LibreOffice types, so the
premac/postmac wrappers are unnecessary.

Change-Id: I3671e6af5f84144eab3439eea076192342ad9fa6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201677
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Tested-by: Jenkins
2026-03-16 20:56:08 +01:00
Noel Grandin 4e6f8e76bf SvStream::ReadByteStringLine should not need to specify encoding
Instead, rely on the stream being set into the correct encoding
during stream initialisation.

Change-Id: Icceb067e600140589c329429d12add2ef3d471c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200458
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-26 20:19:02 +01:00
ashtroll c5ed66adbe tdf#42982 Improve UNO API error reporting
Change-Id: I2fb3f830c6f44a59917b1ed5b1d50dd4f0000000
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196355
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-02-20 16:42:05 +01:00
Simon Chenery e91a6e9b9f tdf#158237 Use C++20 contains() in PColumn.cxx
Change-Id: Ic4853b8baa691eaa3027605bd6e9278fbd767fef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199362
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-02-19 18:55:29 +01:00
Gabor Kelemen 0bdcfc2900 tdf#146619 Use more forward declarations in include/unotools/
This shaves off some 40M of input

Change-Id: I12e10deb87ceea1f7a23f3de4ea624befe187c3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198238
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-05 17:35:46 +01:00
Noel Grandin 01253d0ead no need to use SAL_WHERE when throwing exception
we already add the source location to UNO exception messages

Change-Id: I950d6ecab6fd674335db3d118e50f56aef51bed1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198649
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-02-04 13:02:56 +01:00
Mike Kaganski a6e0ba8386 Use some more IID_PPV_ARGS_Helper to avoid reinterpret_cast
It was already used in commits like e2bfc34d14
(Reimplement OleComponentNative_Impl to use IGlobalInterfaceTable, 2024-03-11).

Change-Id: I8fd60d8eab3ce2d16bfd6766b7fcdcb8b0b182ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198041
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-24 16:24:54 +01:00
Gabor Kelemen 3fc666e120 Fix some non self contained headers in modules [a-r]*
Change-Id: I844cfcfa2bc31fae0256e0c7b757b6223ac8ac35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196633
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-18 00:34:04 +01:00
Mike Kaganski 7b04ef05cd Drop some uses Sequence::getConstArray
Similar to commit b280efcb9b
(Drop some uses Sequence::getConstArray, 2025-12-07).

Change-Id: Ieac325a660fe64e8172c5ed139380caa3d26a73c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195200
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-08 10:00:21 +01:00
Neacsa Leonard 9f25059ea1 tdf#163691 Use std::copy() and std::copy_n instead of memcpy()
Signed-off-by: Neacsa Leonard <leonardneacsa2005@gmail.com>
Change-Id: I7d69cbb0c93f5d9223607f519bbcf5e2acb393cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194359
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-12-08 07:58:45 +01:00
Mike Kaganski 23508cdec1 Drop connectivity::mysqlc::concatSequences; use the one from comphelper
Change-Id: I01382b8c418e88339066bd343c964f6c828baf22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195186
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-07 16:59:10 +01:00
Mike Kaganski b280efcb9b Drop some uses Sequence::getConstArray
Replace by operator[], begin() and end(), which don't have overhead
since commit 2484de6728 (Remove non-
const Sequence::begin()/end() in internal code, 2021-10-15)
and commit fb3c04bd19 (Drop non-const
Sequence::operator[] in internal code, 2021-11-05).

Change-Id: I221470b3439bb0dc6e7705b0d99deb3cd2063484
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195176
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-07 12:54:23 +01:00
Hossein 577f902198 Avoid using local variable that hides a class member
rBHelper was a local variable with the same name of a member variable of
the class ODatabaseMetaDataResultSet. With this patch, we avoid this
name duplication.

The above duplication was causing build problem with the latest VS 2026
compiler:

error C2220: the following warning is treated as an error
warning C4458: declaration of 'rBHelper' hides class member

Change-Id: Id70c690c3b09611aefab720aef1f8c8c1dd46829
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193965
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2025-11-13 21:24:18 +01:00
Gabor Kelemen fd2e467ba3 tdf#146619 Run IWYU in fw decl mode on include/[a-c]*
After recent commit 851fb75779
recheck these directories in include/ again
to test drive the new --headersfwd mode of bin/find-unneeded-includes

Change-Id: I0ede437c4f9958cd98210ed1760a5b98ea8bd1ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192377
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 09:37:19 +01:00
kallial 5553052f30 tdf#157664 Drop operator !=, where respective operator == is defined
Change-Id: I2f99ffc7099dfc2bb47a5102cdb6fd661858a8cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192540
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-10-17 12:43:52 +02:00
Simon Chenery e8b8727027 tdf#158237 Use C++20 contains() instead of find(), end() in dbtools.cxx
Change-Id: I32256e1d9615d0b9f224a311d47e094d54a21862
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192049
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2025-10-08 17:49:36 +02:00
Caolán McNamara 41a20e67c8 cid#1421169 Uncaught exception
and

cid#1421161 Uncaught exception
cid#1421146 Uncaught exception
cid#1421145 Uncaught exception
cid#1421100 Uncaught exception
cid#1659879 Uncaught exception

Change-Id: Ib117e8f2de0d51189d7277d3eec8a1ed685f0724
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191947
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-06 11:22:08 +02:00
Caolán McNamara 153b4dc2e0 drop some more COVERITY stuff
Change-Id: I5964880c3eb62875c45e3262a9c657f7bade236d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191946
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-06 11:22:01 +02:00