dnlnln / generate-sql-merge

Generate SQL MERGE statements with Table data
MIT License
337 stars 151 forks source link

Ensure scope safety when a temp table is specified #64

Closed dnlnln closed 5 years ago

dnlnln commented 5 years ago

Previous logic just picked any temp table it found matching the specified name (supplied via the @table_name='#tempTableName' parameter), regardless of which session it belonged to. This may have resulted in the wrong table metadata being used to construct the merge statement.