Skip to content

Provide A SQL For Insert Configuration #381

@metaskills

Description

@metaskills

Due to supporting UUID inserts, our sql_for_insert now uses OUTPUT INSERTED.#{quoted_pk}. This causes issue with tables that have triggers as noted by issue #339. Let's either do one of the following:

  1. Check if we are doing an insert for a UUID table. May be kind of hard since we are loosing potential table/column reflection since binds is not guaranteed to have these.
  2. Provide a user configuration to globally disable this and always use SCOPE_IDENTITY().
  3. Something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions