Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 52400: IAE on SQL Server Inserting into a list with Auto Increment field with some names #6371

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

labkey-jeckels
Copy link
Contributor

Rationale

We should be using SQLFragment.appendIdentifier() for add column names, and need to merge SQLFragments in selected cases.

Changes

  • Support SQLFragment.insert(SQLFragment) for simple cases

…y Characters" fails with Illegal Argument exception on MSSQL
@labkey-jeckels
Copy link
Contributor Author

@labkey-matthewb let me know if you have an idea for a better way to handle this.

@labkey-matthewb
Copy link
Contributor

@labkey-matthewb let me know if you have an idea for a better way to handle this.

Nope

}
getStringBuilder().insert(index, sql.getRawSQL());
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe check tempTokens.isEmpty() as well.

@labkey-jeckels labkey-jeckels merged commit 938b7d0 into develop Feb 25, 2025
4 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_52400_sqlServerAutoIncrementColName branch February 25, 2025 19:56
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