Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find a bug ,when process nullable(DateTime) fields #162

Open
chenhunhun opened this issue Mar 2, 2024 · 0 comments
Open

find a bug ,when process nullable(DateTime) fields #162

chenhunhun opened this issue Mar 2, 2024 · 0 comments

Comments

@chenhunhun
Copy link

Description

find a bug ,when process nullable(DateTime) fields

public override void NullableValuesFromConst(IEnumerable objects) => Data = objects.Cast<DateTime?>().Select(x => x.GetValueOrDefault()).ToArray();

when the IEnumerable objects have some datatime, some null value, NullableValuesFromConst will raise error

在 System.Linq.Enumerable.d__971.MoveNext() 在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
在 System.Linq.Buffer1..ctor(IEnumerable1 source)
在 System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
在 ClickHouse.Ado.Impl.ColumnTypes.DateColumnType.NullableValuesFromConst(IEnumerable objects) 位置 C:\Users\Administrator\Desktop\ClickHouse-Net-master (1)\ClickHouse-Net-master\ClickHouse.Ado\Impl\ColumnTypes\DateColumnType.cs:行号 65
在 ClickHouse.Ado.Impl.ColumnTypes.NullableColumnType.ValuesFromConst(IEnumerable objects) 位置 C:\Users\Administrator\Desktop\ClickHouse-Net-master (1)\ClickHouse-Net-master\ClickHouse.Ado\Impl\ColumnTypes\NullableColumnType.cs:行号 70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant