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