github-ds/CHANGELOG.md

2.6 KiB

Changelog

0.2.9

Fixes

  • Passing duplicate values to columns in a SQL statement (ex SELECT id, NULL, NULL, name from repositories) used to return an array of results with de-duplicated values. (ex [[1, nil, "github"]] instead of [[1, nil, nil, "github"]]. This had some unfortunate side-effects when parsing results so we changed the code to behave closer to ActiveRecord::Result objects. Now if you pass duplicated columns the results array will return all the values. The hash will only return unique columns because hashes cannot contain duplicate keys.

0.2.8

Fixes

  • GitHub::SQL.transaction now takes options and passes them to ActiveRecord::Base.transaction.
  • Moved default time zone enforcement to sanitize from add. Makes it possible to use interpolate or sanitize and have correct time zone enforcement.

Additions

  • Added GitHub::SQL#transaction instance method to match the class level one.

0.2.7

Fixes

  • GitHub::SQL#hash_results now correctly returns an array of hashes on Rails 4+ rather than ActiveRecord::Result

0.2.6

Fixes

  • Replaces require with require_relative also in github-ds 67f0ea37bc

0.2.5

Fixes

  • Replaces require with require_relative to avoid requirement errors when the gem is required inside the a "gihub" load path cb50e5318c

0.2.4

Additions

0.2.3

Additions

  • github-ds does not use blank? anymore, thus not depending on active_support/core_ext/object/blank a22c397eaa

Fixes

0.2.2

Additions

  • GitHub::KV accepts SQL::Literal as valid values c11d4e3154

Fixes

  • Value length validation takes into account that strings can be made of multi-byte characters 5156f95ef0

0.2.1

Additions

0.2.0

Fixes

0.1.0

  • Initial release.