Skip to content

Commit 06fce7c

Browse files
committed
IncludeProvider: Add column to the end of source header with next index instead of const 0
1 parent 6811886 commit 06fce7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Orm/Xtensive.Orm/Orm/Rse/Providers/Compilable/IncludeProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2024 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Alexey Gamzov
55
// Created: 2009.10.22
66

@@ -62,7 +62,7 @@ public sealed class IncludeProvider: UnaryProvider,
6262
/// <inheritdoc/>
6363
protected override RecordSetHeader BuildHeader()
6464
{
65-
var newHeader = Source.Header.Add(new SystemColumn(ResultColumnName, 0, BoolType));
65+
var newHeader = Source.Header.Add(new SystemColumn(ResultColumnName, Source.Header.Length, BoolType));
6666
var fieldTypes = new Type[FilteredColumns.Count];
6767
for (var index = 0; index < fieldTypes.Length; index++) {
6868
fieldTypes[index] = newHeader.Columns[FilteredColumns[index]].Type;

0 commit comments

Comments
 (0)