Skip to content

Drop support for non-standard-conforming strings #2931

Closed

Description

@roji

Npgsql still supports non-standard-conforming strings, in which backslash is recognized for escape sequences - this support will be removed for 5.0.

Standard-conforming strings have been the PostgreSQL default since 9.1 (2011), and turning them off is not recommended. Supporting the old option is difficult in multiplexing, since our raw CommandText parsing must take this into account, but parsing happens before a physical connection is allocated for execution, so it's not possible to know whether standard-conforming strings are on or not.

For more information, see the PostgreSQL docs, and the escape_string_warning which can be used to locate where applications use the old behavior

Activity

  1. added this to the 5.0 milestone on Apr 25, 2020
  2. self-assigned this
    on Apr 25, 2020
  3. added 2 commits that reference this issue on Jun 15, 2020
    d253892
    7c6e65a
  4. roji commented on Sep 18, 2020

    @roji
    MemberAuthor

    Done as part of the multiplexing work in 4bd4115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions