Skip to content

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

@chenhunhun

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.

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