Skip to content

ActiveRecord::ConnectionAdapters::SQLServerAdapter does not support upsert #1044

@felzend

Description

@felzend

Issue

Trying to use an upsert operation on my model, but it's showing an error telling this adapter has no implementation for that.

Expected behavior

Upsert operation working with no exceptions.

Actual behavior

Throwing an exception:

ActiveRecord::ConnectionAdapters::SQLServerAdapter does not support upsert

raise ArgumentError, "#{connection.class} does not support upsert"

How to reproduce

Simply calling

image

Details

  • Rails version: 7.0.4.3
  • SQL Server adapter version: 7.0.1.0
  • TinyTDS version: 2.1.5
  • FreeTDS details:

SQL SERVER 16.0.4003.1 - Developer Edition

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions