pyodbc を使用して、日付フィールドでこのコードを実行しようとすると:
cursor.execute('insert into test VALUES (?)', None)
...pyodbc.Error: ('HY000', '[HY000] [SAS][SAS ODBC Driver][SAS Server]ERROR: Value 1 of VALUES clause 1 does not match the data type of the corresponding column in (-1) (SQLExecDirectW)')
これを実行すると、次のようになります。
cursor.execute('insert into test VALUES (null)')
... できます。これを実行する別の方法はありますか?つまり、渡した引数をチェックする必要はありませんか?