Skip to content

Commit

Permalink
Fixed bug with ExecuteCrossServerDatasetExtractionSource guid table…
Browse files Browse the repository at this point in the history
… name pattern

Fixes #1256
  • Loading branch information
tznind committed Jun 24, 2022
1 parent e5ae73c commit c5c3ede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fixed user being able to edit filters of a frozen [ExtractionConfiguration]/[CohortIdentificationConfiguration]
- Fixed bug with `ExecuteCrossServerDatasetExtractionSource` guid table name pattern [#1256](https://github.com/HicServices/RDMP/issues/1256)

## [7.0.13] - 2022-05-30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Text.RegularExpressions;
using System.Threading;
using FAnsi.Discovery;
using FAnsi.Discovery.QuerySyntax;
Expand Down Expand Up @@ -139,9 +140,10 @@ private string GetTableName()
if (string.IsNullOrWhiteSpace(TemporaryTableName))
return null;

var guid = Guid.NewGuid();
// add a g to avoid creating a table name that starts with a number (can cause problems and always requires wrapping etc... just bad)
var guid = "g" + Guid.NewGuid().ToString("N");

return _tablename = TemporaryTableName.Replace("$g", guid.ToString("N"));
return _tablename = TemporaryTableName.Replace("$g", guid);
}
}

Expand Down

0 comments on commit c5c3ede

Please sign in to comment.