Skip to content

Comments

Temp tables: Delimit identifier for primary key columns#73

Merged
PawelGerr merged 1 commit intoPawelGerr:releases/10.0.xfrom
oronf-mda:patch-1
Feb 22, 2026
Merged

Temp tables: Delimit identifier for primary key columns#73
PawelGerr merged 1 commit intoPawelGerr:releases/10.0.xfrom
oronf-mda:patch-1

Conversation

@oronf-mda
Copy link
Contributor

@oronf-mda oronf-mda commented Feb 22, 2026

This PR fixes an edge case: For SQL Server, when inserting into a temp table with a defined primary key, and the key is created after insertion, the column names were not escaped. This caused an error when a column name is the same as an SQL keyword (such as Key).

The fix: DelimitIdentifier for each column name, similarly to the other methods.

@oronf-mda oronf-mda changed the title Delimit identifier for primary key columns Temp tables: Delimit identifier for primary key columns Feb 22, 2026
@PawelGerr
Copy link
Owner

Thx, please rebase the PR onto releases/10.0.x so I can release the bugfix without the changes in master.

@oronf-mda oronf-mda changed the base branch from master to releases/10.0.x February 22, 2026 10:28
@oronf-mda
Copy link
Contributor Author

@PawelGerr done

@PawelGerr PawelGerr merged commit 8f526a1 into PawelGerr:releases/10.0.x Feb 22, 2026
1 check failed
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