activerecord-sqlserver-adapter 7.1.6 → 7.1.7

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: 50d2854d11ee9aedbece0e196cc7d4238597119f1e8c905bc8656df3bc6d544f
4
- data.tar.gz: e91570f146e5dc195bef0e7069b1f2b8e493ad3ade25f3f23fce6d985b4a0e02
3
+ metadata.gz: eb26ce0a56d756f8e9ba1d571ab3f3b6ce092ac3c86f8b37bce56942ec96c485
4
+ data.tar.gz: efa5adca77b15a3c5b25c216b1b63d311a1fbfbc5ab79186d94f1b4f9a6ecedb
5
5
  SHA512:
6
- metadata.gz: 701c4ee9e4ec1c89e3302efc018c658222a1e31f08bfdaed051bd68e36edd13a5502f3758691031b853e8b63e5de6af9b1d746650ea75f6694e251523c42f807
7
- data.tar.gz: fbe5f9b6f905f69e1a26a559c37df82318f2c29d6ec02f4b19dd844ebce4900224c43cc29a7cee8af1c20c898214d06cb04c6c26ee6b0ac7a41bc6d15db00cd5
6
+ metadata.gz: 6bfc66070966a026f6f1b42bf1c87e48ad9e0d044ce01755eeddbcbc71f2b5cabd8cd395dc9ebfa0aa1e92c5b8f4c524ead92d1abf017b907de774f224c0c02a
7
+ data.tar.gz: 9ebcf4c64077e0fdfac80b7f5ca6fc5b6218251f378dd6f61c3fcbfd48e4196a93fc09a5de87048834f1e96f3b839ddd2e0ec61457da081bf3f20fd5d5fed08c
@@ -23,7 +23,7 @@ jobs:
23
23
  uses: actions/checkout@v2
24
24
 
25
25
  - name: Build docker images
26
- run: docker-compose build --build-arg TARGET_VERSION=${{ matrix.ruby }}
26
+ run: docker compose build --build-arg TARGET_VERSION=${{ matrix.ruby }}
27
27
 
28
28
  - name: Run tests
29
- run: docker-compose run ci
29
+ run: docker compose run ci
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v7.1.7
2
+
3
+ #### Fixed
4
+
5
+ - [#1210](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1210) Handle blank SQL when parsing table name
6
+
1
7
  ## v7.1.6
2
8
 
3
9
  #### Fixed
data/README.md CHANGED
@@ -14,7 +14,7 @@ Interested in older versions? We follow a rational versioning policy that tracks
14
14
  | Adapter Version | Rails Version | Support | Branch |
15
15
  |-----------------|---------------|---------|--------------------------------------------------------------------------------------------------|
16
16
  | Unreleased | `7.2.x` | In Development | [main](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/main) |
17
- | `7.1.6` | `7.1.x` | Active | [7-1-stable](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/7-1-stable) |
17
+ | `7.1.7` | `7.1.x` | Active | [7-1-stable](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/7-1-stable) |
18
18
  | `7.0.7` | `7.0.x` | Active | [7-0-stable](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/7-0-stable) |
19
19
  | `6.1.3.0` | `6.1.x` | Active | [6-1-stable](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/6-1-stable) |
20
20
  | `6.0.3` | `6.0.x` | Ended | [6-0-stable](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/6-0-stable) |
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.1.6
1
+ 7.1.7
@@ -673,6 +673,8 @@ module ActiveRecord
673
673
 
674
674
  # Parses the raw table name that is used in the SQL. Table name could include database/schema/etc.
675
675
  def get_raw_table_name(sql)
676
+ return if sql.blank?
677
+
676
678
  s = sql.gsub(/^\s*EXEC sp_executesql N'/i, "")
677
679
 
678
680
  if s.match?(/^\s*INSERT INTO.*/i)
@@ -66,6 +66,10 @@ class SchemaTestSQLServer < ActiveRecord::TestCase
66
66
  it do
67
67
  assert_equal "[WITH - SPACES$DOLLAR]", connection.send(:get_raw_table_name, "SELECT id FROM [WITH - SPACES$DOLLAR]")
68
68
  end
69
+
70
+ it do
71
+ assert_nil connection.send(:get_raw_table_name, nil)
72
+ end
69
73
  end
70
74
 
71
75
  describe 'INSERT statements' do
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: 7.1.6
4
+ version: 7.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2024-07-30 00:00:00.000000000 Z
18
+ date: 2024-08-01 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activerecord
@@ -240,8 +240,8 @@ licenses:
240
240
  - MIT
241
241
  metadata:
242
242
  bug_tracker_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/issues
243
- changelog_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/blob/v7.1.6/CHANGELOG.md
244
- source_code_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/v7.1.6
243
+ changelog_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/blob/v7.1.7/CHANGELOG.md
244
+ source_code_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/v7.1.7
245
245
  post_install_message:
246
246
  rdoc_options: []
247
247
  require_paths: