Sha256: 8ee25b19df4ddf4c86b18a495be78e1c935c0d1b4576007118f699cb4e7416fa

Contents?: true

Size: 655 Bytes

Versions: 4

Compression:

Stored size: 655 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
 module ConnectionAdapters
   module MSSQL
     module DatabaseLimits

       # Returns the maximum number of elements in an IN (x,y,z) clause.
       # NOTE: Could not find a limit for IN in mssql but 10000 seems to work
       # with the active record tests
       def in_clause_length
         10_000
       end

       private

       # the max bind params is 2100 but it seems
       # the jdbc uses 2 for something
       def bind_params_length
         2_098
       end

       # max number of insert rows in mssql
       def insert_rows_length
         1_000
       end

     end
   end
 end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-jdbc-alt-adapter-60.3.0-java lib/arjdbc/mssql/database_limits.rb
activerecord-jdbc-alt-adapter-60.2.0-java lib/arjdbc/mssql/database_limits.rb
activerecord-jdbc-alt-adapter-60.1.0-java lib/arjdbc/mssql/database_limits.rb
activerecord-jdbc-alt-adapter-60.0.0-java lib/arjdbc/mssql/database_limits.rb