Skip to content

Fix upsert mismatch#598

Merged
abnegate merged 4 commits into0.69.xfrom
fix-upsert-mismatch
May 29, 2025
Merged

Fix upsert mismatch#598
abnegate merged 4 commits into0.69.xfrom
fix-upsert-mismatch

Conversation

@abnegate
Copy link
Copy Markdown
Member

@abnegate abnegate commented May 29, 2025

Addresses PDOException thrown when documents contain different sets of optional attributes during upsert

@abnegate abnegate requested review from Copilot and fogelito May 29, 2025 10:20
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames test methods to reflect the upsert behavior and fixes an upsert mismatch while also enhancing optional attribute handling within document updates.

  • Renamed test methods from "CreateOrUpdateDocuments" to "UpsertDocuments" variants.
  • Added new tests to cover attribute mismatch and no-op upsert scenarios.
  • Updated the database document update mechanism to force matching optional parameter sets.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/e2e/Adapter/Scopes/DocumentTests.php Renaming of test methods and addition of new upsert tests
src/Database/Database.php Enhanced optional attribute handling during upsert operations

@abnegate abnegate merged commit 42bfc0d into 0.69.x May 29, 2025
14 checks passed
@abnegate abnegate deleted the fix-upsert-mismatch branch May 29, 2025 10:36
abnegate added a commit that referenced this pull request May 29, 2025
Fix upsert mismatch
# Conflicts:
#	tests/e2e/Adapter/Scopes/DocumentTests.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants