activerecord-jdbc-alt-adapter 50.3.1-java → 50.3.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92dac2edfcfed4dc0eb6a9cc29a7b09d1b9353dc8c81f9a83354d8483a29d693
4
- data.tar.gz: 655f68ee07612be8dde98751a301a73cb000202b177c2caccdd096ad73ddb734
3
+ metadata.gz: '09bfb6bcb1adba66ba35e7215833ce8983feb04de74c0e2daf5db33ad82cbb0c'
4
+ data.tar.gz: b85e0d8b6fa55c656099c9ee04274cecf4504a76192c620037ad3cee1c295481
5
5
  SHA512:
6
- metadata.gz: 771a171b82db726fc727075a4b84f5c4772565b7005682bda6ea017f1464e7c3ab7d6b933f23943a534aac5e70c72d88df3fd173d417beff5d9325b8f8a10a61
7
- data.tar.gz: de350c94d7eeda43af9e55eda5db8cc53c6a2ff16607a40c7a27850194c8845edd5f96f58be4b8be4fa30a07709cf023078df1cb584bd1019303d484d12e10a3
6
+ metadata.gz: 68de6bc73dc2bf00af195f9329c0c4af4272a13fa42fcc01a6d24827ce52ec51d23db63828cd8e9e32e228c499e0e89261f375ef49fedf8d6e27124945848bf7
7
+ data.tar.gz: e89361d96b9ea5ad3a2f24d3def7df79c2150973b36fce49148344467ca38a92acba925608a965a4db947072e2014864ce717cc2d7a23fece644c42455d0a1d4
Binary file
@@ -1,3 +1,3 @@
1
1
  module ArJdbc
2
- VERSION = '50.3.1'
2
+ VERSION = '50.3.2'
3
3
  end
@@ -2895,8 +2895,9 @@ public class RubyJdbcConnection extends RubyObject {
2895
2895
  value = value.callMethod(context, "to_date");
2896
2896
  }
2897
2897
 
2898
- // NOTE: assuming Date#to_s does right ...
2899
- statement.setDate(index, Date.valueOf(value.toString()));
2898
+ // NOTE: Here we rely in ActiveRecord (ActiveSupport) to get
2899
+ // the date as a string in the database format.
2900
+ statement.setDate(index, Date.valueOf(value.callMethod(context, "to_s", context.runtime.newSymbol("db")).toString()));
2900
2901
  }
2901
2902
 
2902
2903
  protected void setBooleanParameter(final ThreadContext context,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-jdbc-alt-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 50.3.1
4
+ version: 50.3.2
5
5
  platform: java
6
6
  authors:
7
7
  - Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-07 00:00:00.000000000 Z
11
+ date: 2019-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement