Joas Schilling
|
0caff489aa
|
fix(comments): Check comment object
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
2025-12-11 07:58:27 +07:00 |
Benjamin Gaussorgues
|
98d30feb95
|
feat(db): add SSL/TLS support for PostgreSQL
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
|
2025-09-22 14:59:54 +07:00 |
Stephan Orbaugh
|
b09dfb03b7
|
Merge pull request #54252 from nextcloud/backport/54203/stable31
[stable31] fix: fix oci string length with empty strings
|
2025-08-07 15:21:33 +07:00 |
Joas Schilling
|
0dce6c2453
|
fix(logging): Fix query logging with DateTimeImmutable parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
2025-08-05 10:29:24 +07:00 |
Robin Appelman
|
4560a512b8
|
fix: fix oci string length with empty strings
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2025-08-05 10:19:00 +07:00 |
Marcel Klehr
|
8173f5eb44
|
fix(ConnectionFactory): Apply Oracle connection fix to primary and replica params as well
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
2025-07-28 06:14:08 +07:00 |
Robin Appelman
|
f764c62ac0
|
fix: allow hinting the shard keys for joined tables
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2025-06-12 13:42:12 +07:00 |
Robin Appelman
|
28c63750f9
|
fix: use proper migration sorting when checking if a migration needs to be executed
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2025-04-02 12:52:52 +07:00 |
Robin Appelman
|
0ae944db2c
|
feat: log query for dbal exceptions
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2025-03-04 15:33:54 +07:00 |
Robin Appelman
|
ea678c0280
|
feat: support migrating an instance to sharding
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2025-02-25 21:43:54 +07:00 |
Louis Chemineau
|
8a2437927d
|
fix: Initialize lastConnectionCheck after first connection
We are checking whether the DB connection is alive once every 30 seconds. But when we are lacking the last check time, we are skipping the check and reconnect logic. This is causing the reconnect logic to never fire in those cases.
It seems to me that "those cases", are actually always the case, as upon initialization, we are not using the proper connection name to store the time.
In the `connect()` logic, when `$this->_conn` is null, `$this->getConnectionName()` is returning `replica`, so `$this->lastConnectionCheck` will be equal to `['replica' => time()];`
60711ea4cf/lib/private/DB/Connection.php (L215-L221)
60711ea4cf/lib/private/DB/Connection.php (L891-L893)
2b6d7bf65f/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php (L136-L139)
Then, if the connection name ends up as being 'primary', the reconnect logic is skipped:
60711ea4cf/lib/private/DB/Connection.php (L874-L880)
Follow-up of https://github.com/nextcloud/server/pull/41819
Signed-off-by: Louis Chemineau <louis@chmn.me>
|
2025-02-25 11:07:34 +07:00 |
Nils Wenninghoff
|
8a6d9ffdc1
|
fix(ConvertType): Read dbtype in createConnectionParams and remove safeguard
Signed-off-by: Nils Wenninghoff <nils@ungemein.cool>
|
2025-01-30 10:50:16 +07:00 |
Robin Appelman
|
0f55a589ba
|
fix: improve logic for ensuring join columns are selected for partitioned queries
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-12-12 17:39:04 +07:00 |
Robin Appelman
|
c3930163a2
|
fix: handle calling select on partitioned queries with an array of columns
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-12-12 17:38:21 +07:00 |
Benjamin Gaussorgues
|
49bd1754d4
|
fix(sharding): typo in addOrderBy
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
|
2024-10-30 07:53:10 +07:00 |
dependabot[bot]
|
bb598c8451
|
chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixer
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2)
---
updated-dependencies:
- dependency-name: nextcloud/coding-standard
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: provokateurin <kate@provokateurin.de>
|
2024-10-19 07:57:35 +07:00 |
Ferdinand Thiessen
|
db94e10af0
|
fix: Prevent breaking change in IQueryBuilder
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
2024-10-17 18:31:44 +07:00 |
Ferdinand Thiessen
|
e314d52118
|
fix: Adjust parameter type usage and add SQLite support
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
2024-10-17 18:31:44 +07:00 |
provokateurin
|
e445be1202
|
fix(QueryBuilder): Account for aliases in output columns
Signed-off-by: provokateurin <kate@provokateurin.de>
|
2024-10-02 11:55:27 +07:00 |
provokateurin
|
35dfc639b3
|
fix(QueryBuilder): Restrict identifier length to 30 characters due to Oracle limitations
Signed-off-by: provokateurin <kate@provokateurin.de>
|
2024-09-26 08:57:06 +07:00 |
Ferdinand Thiessen
|
a8f46af20f
|
chore: Add proper deprecation dates where missing
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
2024-09-20 00:46:03 +07:00 |
provokateurin
|
9836e9b164
|
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
|
2024-09-19 14:21:20 +07:00 |
John Molakvoæ
|
ff0cab5956
|
Merge pull request #47852 from nextcloud/sharding-code-fixes
|
2024-09-16 11:39:58 +07:00 |
Ferdinand Thiessen
|
027fc052e7
|
fix: Adjust types of IQueryBuilder to properly allow joining with sub-query
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
2024-09-10 17:51:27 +07:00 |
Robin Appelman
|
da59fd4389
|
fix: misc code fixes around db sharding
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-09-09 16:59:59 +07:00 |
Anna Larch
|
8af7ecb257
|
chore: adjust code to adhere to coding standard
Signed-off-by: Anna Larch <anna@nextcloud.com>
|
2024-09-05 21:23:38 +07:00 |
John Molakvoæ
|
7efd244956
|
Merge pull request #47675 from nextcloud/adapterQueryOpti
|
2024-09-04 09:15:52 +07:00 |
Julius Härtl
|
7f0d0cf03c
|
Merge pull request #47640 from nextcloud/fix/migrator-replica
fix: Run migration sql as statement so that the primary db node is used
|
2024-09-02 10:46:24 +07:00 |
Git'Fellow
|
8e6e7976d2
|
fix: psalm
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
|
2024-09-02 10:19:25 +07:00 |
Git'Fellow
|
388f2973b9
|
fix: psalm
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
|
2024-09-02 10:08:08 +07:00 |
Git'Fellow
|
dfcf3132dd
|
chore(db): Make the query more simpler to read
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
|
2024-09-02 09:57:48 +07:00 |
Julius Härtl
|
c3fa25a16e
|
fix: Run migration sql as statement so that the primary db node is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
2024-08-30 15:45:50 +07:00 |
Arthur Schiwon
|
edaa4d1432
|
fix(DB): do not assume sharding is always enabled
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
|
2024-08-29 19:55:10 +07:00 |
Arthur Schiwon
|
381e922085
|
fix(DB): set sharding parameters only when intended
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
|
2024-08-29 19:12:44 +07:00 |
Andy Scherzinger
|
d404998157
|
Merge pull request #47515 from nextcloud/bugfix/noid/fix-migration-sorting
fix(migration): Correctly sort migrations by version number
|
2024-08-28 20:46:24 +07:00 |
Louis Chemineau
|
2574cbfa61
|
chore: Apply php:cs recommendations
Signed-off-by: Louis Chemineau <louis@chmn.me>
|
2024-08-28 10:44:18 +07:00 |
Robin Appelman
|
b21a399d1a
|
fix: implement sharding compatible cleanup for various bits
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-08-28 10:27:14 +07:00 |
Robin Appelman
|
fc05a67f19
|
fix: only allow pre-defined shards
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-08-28 10:21:19 +07:00 |
Robin Appelman
|
62f8b6517f
|
feat: implement distributing partitioned queries over multiple shards
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-08-28 10:21:19 +07:00 |
Robin Appelman
|
f5b3486744
|
feat: add option to automatically partition queries by specific tables
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-08-28 10:18:53 +07:00 |
Robin Appelman
|
c09ec95255
|
feat: track expected output columns in query builder
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-08-28 10:18:52 +07:00 |
Joas Schilling
|
46c853146b
|
fix(migration): Correctly sort migrations by version number
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
2024-08-27 16:25:10 +07:00 |
Christoph Wurst
|
bdcfe5b8a9
|
fix(db): Increase log level for very slow transactions
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
2024-08-27 10:12:14 +07:00 |
Daniel Kesselberg
|
af6de04e9e
|
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
|
2024-08-25 19:34:58 +07:00 |
Robin Appelman
|
658d2f7ea1
|
feat: expose escapeLikeParameter trough query builder
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-08-23 15:12:10 +07:00 |
Robin Appelman
|
5654799cb4
|
fix: fix passing additional db connection parameters in factory
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-07-31 18:53:42 +07:00 |
Stephan Orbaugh
|
65941811b3
|
Merge pull request #44788 from nextcloud/db-error-logging
feat: add additional logging for database errors
|
2024-07-25 09:09:57 +07:00 |
Robin Appelman
|
7fbb981877
|
feat: add additional logging for database errors
including the stack trace of the current database transaction
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-07-24 15:35:07 +07:00 |
Robin Appelman
|
16c184e2cb
|
fix: cast to bigint on postgresql
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2024-07-23 14:41:13 +07:00 |
Joas Schilling
|
b656edc47c
|
fix(db): Fix md5 for oracle >= 20
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
2024-07-19 14:13:56 +07:00 |