Skip to content

str object has no attribute 'tzinfo' #487

@iamtalhaasghar

Description

@iamtalhaasghar

Describe the bug
If an empty string is sent as a value for a Nullable(DateTime) column it was not being treated as Null value.

To Reproduce
create a Nullable(Datetime) column and try to insert empty string.

Expected behavior
if a an empty string is sent as a value for Nullable(DateTime) column it should be treated as Null value so as to avoid other complications .i.e. timezone conversion etc.

Versions

  • Version of package with the problem: 0.2.9
  • ClickHouse server version: 25.3.4.190
  • Python version: 3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions