Skip to content

Commit

Permalink
Update DiscoveredTableHelper.cs
Browse files Browse the repository at this point in the history
Fix missing space that stopped unique index creation working
  • Loading branch information
jas88 committed May 30, 2024
1 parent 22e3d63 commit 91588ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FAnsiSql/Discovery/DiscoveredTableHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public virtual void CreateIndex(DatabaseOperationArgs args, DiscoveredTable tabl
using var connection = args.GetManagedConnection(table);
try
{
var unique = isUnique ? "UNIQUE" : "";
var unique = isUnique ? "UNIQUE " : "";
var columnNameList = string.Join(" , ", columns.Select(c => syntax.EnsureWrapped(c.GetRuntimeName())));
var sql =
$"CREATE {unique}INDEX {indexName} ON {table.GetFullyQualifiedName()} ({columnNameList})";
Expand Down

0 comments on commit 91588ea

Please sign in to comment.