зеркало из https://github.com/github/github-ds.git
2.6 KiB
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 toActiveRecord::Result
objects. Now if you pass duplicated columns theresults
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 thanActiveRecord::Result
0.2.6
Fixes
- Replaces
require
withrequire_relative
also in github-ds67f0ea37bc
0.2.5
Fixes
- Replaces
require
withrequire_relative
to avoid requirement errors when the gem is required inside the a "gihub" load pathcb50e5318c
0.2.4
Additions
GitHub::SQL.transaction
was added to allowGitHub::SQL
queries to run transactionally https://github.com/github/github-ds/pull/24
0.2.3
Additions
- github-ds does not use
blank?
anymore, thus not depending onactive_support/core_ext/object/blank
a22c397eaa
Fixes
ActiveRecord::Base.default_timezone
is not unintentionally set tonil
https://github.com/github/github-ds/pull/22
0.2.2
Additions
GitHub::KV
acceptsSQL::Literal
as valid valuesc11d4e3154
Fixes
- Value length validation takes into account that strings can be made of multi-byte characters
5156f95ef0
0.2.1
Additions
Result.new
without block returnstrue
forok?
https://github.com/github/github-ds/pull/19
0.2.0
Fixes
- Fixed rails generator name https://github.com/github/github-ds/pull/16
- Add active_record as dependency (not just dev dependency)
e9ce8e4e47
0.1.0
- Initial release.