-
Notifications
You must be signed in to change notification settings - Fork 853
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
Unsupport for Boolean and Array(T) type data in ClickHouseDB insertion. #1568
Comments
https://clickhouse.com/docs/zh/sql-reference/data-types/boolean
|
support array types +1 |
2881099
added a commit
that referenced
this issue
Nov 30, 2023
2881099
added a commit
that referenced
this issue
Nov 30, 2023
v3.2.806-preview20231130
c# bool、int[]、string[] |
Note that the insertion of array types needs to be unparameterized _fsql.Insert(new table { tags1 = new[] {"a", "b" }}).NoneParameter().ExecuteAffrows();
//or
_fsql.Insert(new table { tags1 = new[] {"a", "b" }}).ExecuteBulkCopy(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Boolean
When inserting data into the Click House database, if a Boolean parameter is defined in the database table, it gives an error. I built the code and noticed that bool is mapped to Int8 in the types dictionary.
In class: ClickHouseCodeFirst.cs :
this line:
Why does this problem occur, what is your solution?
Array(T) type
When inserting data, if the data type is an Array, strangely, you don't consider it at all in the query, and you return it to null in the code. What is the cause?
You also don't support this type at all.
In class: ClickHouseCodeFirst.cs :
Why does this problem occur, what is your solution?
. net core?DotNet6
Tasks
The text was updated successfully, but these errors were encountered: