Module: ActiveRecord::ConnectionAdapters::MSSQL::DatabaseLimits
- Included in:
- ActiveRecord::ConnectionAdapters::MSSQLAdapter
- Defined in:
- lib/arjdbc/mssql/database_limits.rb
Instance Method Summary collapse
-
#in_clause_length ⇒ Object
Returns the maximum number of elements in an IN (x,y,z) clause.
Instance Method Details
#in_clause_length ⇒ Object
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 FIXME: this method was deprecated in rails 6.1, and it seems the only code that used this method was the oracle visitor, the code was moved from rails to the adapter itself. https://github.com/rsim/oracle-enhanced/pull/2008/files related: https://github.com/rails/rails/pull/38946 https://github.com/rails/rails/pull/39057
18 19 20 |
# File 'lib/arjdbc/mssql/database_limits.rb', line 18 def in_clause_length 10_000 end |