Skip to content

Implement AppContext-switch mode to disable SQL parsing/rewriting #3920

Description

@roji

Now that we have both raw mode (#3852) and a proper batching API (#3860), we can add an AppContext switch which disables all SQL parsing/rewriting. When this mode is active, only positional parameters would be usable, and trying to use legacy batching (i.e. including semicolons in CommandText) would fail.

Aside from ensuring best practices in user code, this would have the concrete advantage of avoiding SQL parsing/rewriting for commands with zero parameters (e.g. TechEmpower Fortunes); we currently parse these since they may contain a semicolon

This would be opt-in.

Based on conversation with @NinoFloris.

Activity

  1. added this to the 6.0.0 milestone on Aug 16, 2021
  2. self-assigned this
    on Aug 16, 2021
  3. added a commit that references this issue on Aug 16, 2021
    1105d5e
  4. added a commit that references this issue on Aug 16, 2021
    c70ab8b
  5. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions