(py3venv) C:\code\py\csvkit_agatesql>csvsql --db ingres:///csvsql_bug --tables csvsql_bug --insert bug_two_columns.csv
TypeError: conversion from NoneType to Decimal is not supported
Workaround is to manually and explicitly specify lengths for two parameters:
When using csvsql against either mysql or ingres get error with simple csv file:
Contents of file bug_two_columns.csv
Demo, note this uses Ingres https://github.com/ActianCorp/sqlalchemy-ingres but mysql should fail in exact same way:
Workaround is to manually and explicitly specify lengths for two parameters:
There are arguably two causes (possible fix points) of this bug:
col-len-multiplier
and--min-col-len
) - PR posted https://github.com/wireservice/csvkit/pull/1259