Sha256: 9eaea6c2125c6f53054e29a32b8629e2b346fa0e7d891291ce70855b361ac19c

Contents?: true

Size: 541 Bytes

Versions: 13

Compression:

Stored size: 541 Bytes

Contents

require "cases/helper"
require "models/developer"

class PreparedStatementsTest < ActiveRecord::PostgreSQLTestCase
  fixtures :developers

  def setup
    @default_prepared_statements = Developer.connection_config[:prepared_statements]
    Developer.connection_config[:prepared_statements] = false
  end

  def teardown
    Developer.connection_config[:prepared_statements] = @default_prepared_statements
  end

  def nothing_raised_with_falsy_prepared_statements
    assert_nothing_raised do
      Developer.where(id: 1)
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ibm_db-5.5.0 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.4.1 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.4.0 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.3.2 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.3.1 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.2.0 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.1.0 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.5 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.4 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.3 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-5.0.2 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-4.0.0-x86-mingw32 test/cases/adapters/postgresql/prepared_statements_test.rb
ibm_db-4.0.0 test/cases/adapters/postgresql/prepared_statements_test.rb