It appears that some databases don't support setting NULL via setObject at all (e.g. Teradata  #307). So perhaps the way to go in such cases should be `setNull` invocation.