activerecord-sqlserver-adapter 5.2.0.rc2 → 5.2.0

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: 86082ad4b36f21839ed6bde7e9400d53497d03f9fa20e7d05e88e5f44b908044
4
- data.tar.gz: 5ff7193466b8db1c2bd86983be80b8ca0e95a5b59359c9d8baccb20a633950cc
3
+ metadata.gz: a148546b3f7d4e6734c8c8a7d834c242a7e1cec5344601d527f0c567cd6ad2e1
4
+ data.tar.gz: 261bd21097b324059eb205960c73c1eb3f1c8d4cb9a6da7c91876d64d33f8381
5
5
  SHA512:
6
- metadata.gz: 353e197ded79e31d9f631c7b53a74e80c423de40da152dd0f65bfbf9a19b7427dd9c5e9106db42054e161a82a618a2c17034aa0a3990a333fdfec0fc7e4a8bdd
7
- data.tar.gz: 1f4baeebc22334781cf45314bf98f22922edde9b5017f4c6bd1231dd06741f9769dc0497a7906eed696bf29dda1561789f1222b28d747302c3e39ecc8096a12b
6
+ metadata.gz: ed85ad0fb65a3e32312c10db899037786549abe289e5cfeb519634d0a4e090a39c4c193b89e8285ba3d3a786c68e4c317440e94e217cb256a109c68b8497fb3d
7
+ data.tar.gz: 49f1e9767c1c411e9a86ff8678bc5ac6470d31bead60dba3ca6039fd2fb2a8435ed4c1dda6e59b9745ba4c32ea46166c28907cfce84614aaa64aae080214db5b
@@ -1,3 +1,7 @@
1
+ ## v5.2.0
2
+
3
+ - #686 sql_for_insert set table name in case when pk is not nil
4
+
1
5
  ## v5.2.0.rc2
2
6
 
3
7
  #### Fixed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.0.rc2
1
+ 5.2.0
@@ -228,6 +228,7 @@ module ActiveRecord
228
228
  end
229
229
  sql = if pk && use_output_inserted? && !database_prefix_remote_server?
230
230
  quoted_pk = SQLServer::Utils.extract_identifiers(pk).quoted
231
+ table_name ||= get_table_name(sql)
231
232
  exclude_output_inserted = exclude_output_inserted_table_name?(table_name, sql)
232
233
  if exclude_output_inserted
233
234
  id_sql_type = exclude_output_inserted.is_a?(TrueClass) ? 'bigint' : exclude_output_inserted
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sqlserver-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0.rc2
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2019-03-10 00:00:00.000000000 Z
17
+ date: 2019-03-19 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: activerecord
@@ -218,9 +218,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  requirements:
221
- - - ">"
221
+ - - ">="
222
222
  - !ruby/object:Gem::Version
223
- version: 1.3.1
223
+ version: '0'
224
224
  requirements: []
225
225
  rubygems_version: 3.0.1
226
226
  signing_key: