Skip to content

Conversation

ting-lan-wang
Copy link
Contributor

This PR incorporate the changes from FixPLSQLAutoIncrement.

Issue 1

The PR fixes the issue of the previous commit which add supports of skipping quoting identifiers. The solution uses writeQuotedIdentifier directly, which fails when trying to avoid quoting the identifiers. Instead, it should go through db.QuoteTo so that the configuration option can decide whether to actually quote anything.

Issue 2

When updating a struct with a one-to-many relationship, the update attempts to insert NULL into the auto-increment field of the new row. The fix is simply to exclude auto-increment fields when generating the SQL.

This change also adds the test TestSaveAssociationWithAutoIncrementField to verify the fix.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 19, 2025
@ting-lan-wang ting-lan-wang merged commit 9cd1710 into main Sep 22, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants