pkgsrc/www/ruby-actionpack61/distinfo
taca 48139b827a www/ruby-rails61: update to 6.1.3
Rails 6.1.3 (February 17, 2021)

[ActionPack]

* Re-define routes when not set correctly via inheritance.

    *John Hawthorn*

[ActiveRecord]

* Fix the MySQL adapter to always set the right collation and charset
  to the connection session.

    *Rafael Mendonça França*

* Fix MySQL adapter handling of time objects when prepared statements
  are enabled.

    *Rafael Mendonça França*

* Fix scoping in enum fields using conditions that would generate
  an IN clause.

    *Ryuta Kamizono*

* Skip optimised #exist? query when #include? is called on a relation
  with a having clause

  Relations that have aliased select values AND a having clause that
  references an aliased select value would generate an error when
  #include? was called, due to an optimisation that would generate
  call #exists? on the relation instead, which effectively alters
  the select values of the query (and thus removes the aliased select
  values), but leaves the having clause intact. Because the having
  clause is then referencing an aliased column that is no longer
  present in the simplified query, an ActiveRecord::InvalidStatement
  error was raised.

  An sample query affected by this problem:

    Author.select('COUNT(*) as total_posts', 'authors.*')
          .joins(:posts)
          .group(:id)
          .having('total_posts > 2')
          .include?(Author.first)

  This change adds an addition check to the condition that skips the
  simplified #exists? query, which simply checks for the presence of
  a having clause.

  Fixes #41417

    *Michael Smart*

* Increment postgres prepared statement counter before making a
  prepared statement, so if the statement is aborted without Rails
  knowledge (e.g., if app gets kill -9d during long-running query or
  due to Rack::Timeout), app won't end up in perpetual crash state for
  being inconsistent with Postgres.

    *wbharding*, *Martin Tepper*
2021-02-28 15:42:39 +00:00

6 lines
404 B
Text

$NetBSD: distinfo,v 1.2 2021/02/28 15:42:40 taca Exp $
SHA1 (actionpack-6.1.3.gem) = c2302fcb8ce09aae8f19186b1d2c38bd9d4dd45c
RMD160 (actionpack-6.1.3.gem) = d909372bbfdea44c36dc5cdae602b25acc311c23
SHA512 (actionpack-6.1.3.gem) = 46bf8a1e47afe81dae25503b24da4f5f1ae8ecb67a6b961a39a058977d39c24e4ecbab79c8872ffa6541522ca791996f4b26327ab423fb7bdc062f94dc14ca12
Size (actionpack-6.1.3.gem) = 224256 bytes