Skip to content

System.NotSupportedException:“Unknown column type Decimal(9, 4)” #161

Description

@chenhunhun

Description

CLICKHOUSE FIELD IS DEFINED LIKE THIS:
PrintTicketLimitMoney Nullable(Decimal(9, 4)),
When i try to insert row:
foreach (DataRow row in table.Rows)
{
insertCommand.Parameters.Clear();

                                foreach (DataColumn column in table.Columns)
                                {
                                    string paramName = $"{column.ColumnName}";
                                    object columnValue = row[column.ColumnName];
                                    insertCommand.Parameters.Add(paramName, columnValue ?? DBNull.Value);
                                }

                     
                                insertCommand.ExecuteNonQuery();//get  error
                            }

... System.NotSupportedException:“Unknown column type Decimal(9, 4)”

how to solve it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions