nextcloud/lib/private/DB
Joas Schilling df94cceb7b
fix(db): Store last insert id before reconnect
During a reconnect we are losing the connection and when the
realLastInsertId call is the one triggering the reconnect, it
does not return the ID. But inside the reconnect, we were able
to save the last insert id, so calling it a second time is going
to be successful.
We can not return the result on the initial call, as we are already
way deeper in the stack performing the actual database query on
the doctrine driver.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-05-14 10:27:00 +02:00
..
Exceptions feat: log query for dbal exceptions 2025-02-26 17:37:13 +01:00
QueryBuilder fix(lint): correct comment identation 2025-02-25 22:35:50 +01:00
Adapter.php fix(db): Store last insert id before reconnect 2025-05-14 10:27:00 +02:00
AdapterMySQL.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
AdapterOCI8.php fix(db): Store last insert id before reconnect 2025-05-14 10:27:00 +02:00
AdapterPgSql.php fix(db): Store last insert id before reconnect 2025-05-14 10:27:00 +02:00
AdapterSqlite.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
ArrayResult.php chore: Apply php:cs recommendations 2024-08-28 10:44:18 +02:00
BacktraceDebugStack.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Connection.php fix(db): Store last insert id before reconnect 2025-05-14 10:27:00 +02:00
ConnectionAdapter.php Merge pull request #51073 from nextcloud/dbal-exception-query 2025-03-04 16:32:55 +01:00
ConnectionFactory.php fix(ConvertType): Read dbtype in createConnectionParams and remove safeguard 2025-01-30 09:24:58 +01:00
DbDataCollector.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
MigrationException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
MigrationService.php fix: use proper migration sorting when checking if a migration needs to be executed 2025-04-02 14:29:08 +02:00
Migrator.php fix: Run migration sql as statement so that the primary db node is used 2024-08-30 15:45:50 +02:00
MigratorExecuteSqlEvent.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
MissingColumnInformation.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
MissingIndexInformation.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
MissingPrimaryKeyInformation.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
MySqlTools.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
ObjectParameter.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
OCSqlitePlatform.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
OracleConnection.php fix(db): Use createSchemaManager() method as getSchemaManager() is deprecated 2024-07-19 11:21:11 +02:00
OracleMigrator.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
PgSqlTools.php fix(db): Use createSchemaManager() method as getSchemaManager() is deprecated 2024-07-19 11:21:11 +02:00
PreparedStatement.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
ResultAdapter.php fix(db): Fix internal calls to doctrine's fetch() methods 2024-07-19 11:21:12 +02:00
SchemaWrapper.php feat: implement distributing partitioned queries over multiple shards 2024-08-28 10:21:19 +02:00
SetTransactionIsolationLevel.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
SQLiteMigrator.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
SQLiteSessionInit.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00