Skip to content

Commit 967c2e6

Browse files
committed
ToArray(t.tables.Length) for consistency
1 parent 4051f98 commit 967c2e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Orm/Xtensive.Orm/Sql/Dml/Hints/SqlForceJoinOrderHint.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Linq;
77
using System.Collections.Generic;
8+
using Xtensive.Core;
89

910
namespace Xtensive.Sql.Dml
1011
{
@@ -20,7 +21,7 @@ public class SqlForceJoinOrderHint : SqlHint
2021

2122
internal override SqlForceJoinOrderHint Clone(SqlNodeCloneContext context) =>
2223
context.GetOrAdd(this, static (t, c) =>
23-
new SqlForceJoinOrderHint(t.tables?.Select(table => (SqlTable) table.Clone()).ToArray()));
24+
new SqlForceJoinOrderHint(t.tables?.Select(table => (SqlTable) table.Clone()).ToArray(t.tables.Length)));
2425

2526
public override void AcceptVisitor(ISqlVisitor visitor)
2627
{

0 commit comments

Comments
 (0)