Skip to content

Feature Request: Per-connection Npgsql.EnableLegacyTimestampBehavior  #5564

@mwpastore

Description

@mwpastore

Steps to reproduce

  • Create NpgsqlConnection "A" where the business logic requires Npgsql.EnableLegacyTimestampBehavior set to true
  • Create NpgsqlConnection "B" where the business logic requires Npgsql.EnableLegacyTimestampBehavior set to false

The issue

Depending on the order of operations, sometimes A will have Npgsql.EnableLegacyTimestampBehavior set to false, and sometimes B will have Npgsql.EnableLegacyTimestampBehavior set to true. It is difficult to set this switch deterministically and even more difficult to test. This creates a serious conflict in our app that uses both types of connections.

Instead we'd like a way to configure each Npgsql connection with the appropriate value of Npgsql.EnableLegacyTimestampBehavior.

Further technical details

  • Npgsql version:
    • A is using 8.0.0
    • B is using 6.0.0
  • PostgreSQL version: 13
  • Operating system: Ubuntu Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions