logstash-input-jdbc 4.3.9 → 4.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b3729c8e7d700220f5bd8f8c537909129fd3f4b10190429d62e7a8168530028
4
- data.tar.gz: fe829c225a4dbee8872269e59ca07d61b9d907092eec1c8472d1c6e6e447592d
3
+ metadata.gz: d9e1072279ad555d69710d66bc23f5d6af1d5492998c6a2a30edb8dea03bb402
4
+ data.tar.gz: 03ca8379b772ef0a4b5d8693fbcee2adbe3c2226922f19e38c2f70e0b02d573e
5
5
  SHA512:
6
- metadata.gz: 1e1fef88ac0a342a88a3b2986e38c280f0de510964abe8caa22a955d3befee3276e24dcb4d63b1ace6f5ec35ab633ec1e857f74114677fe7b67562faa4f4840c
7
- data.tar.gz: 601ae42f004b530346dcafb7da654b20df633cc8fa12a6ef997c5d3d4184221820374533eab740436c753f9fe7036aa48c41cf892c4d07d1cad01da424e62ff5
6
+ metadata.gz: 151670dbc5de220c1c68eef6b723a2c49a1fa93f19efe97a6286c0968309ea53bb57be19e0a46a359c094ce6ce8a69a3cc78213f9884f67fec6477622bc70c94
7
+ data.tar.gz: 19929d6d094038af8405cb019de5032cc470ab312ffe3e495f47c193ee066f87fd9fdae7dcb79f8fd6b1a0fc27db1450e876bce8b0437c9e35706059d726b8dd
@@ -1,3 +1,9 @@
1
+ ## 4.3.11
2
+ - Fixed crash that occurs when receiving string input that cannot be coerced to UTF-8 (such as BLOB data) [#291](https://github.com/logstash-plugins/logstash-input-jdbc/pull/291)
3
+
4
+ ## 4.3.10
5
+ - [#284](https://github.com/logstash-plugins/logstash-input-jdbc/pull/284) Swap out mysql for postgresql for testing
6
+
1
7
  ## 4.3.9
2
8
  - Docs: Set the default_codec doc attribute.
3
9
 
@@ -230,11 +230,14 @@ class LogStash::Inputs::Jdbc < LogStash::Inputs::Base
230
230
  @jdbc_password = LogStash::Util::Password.new(File.read(@jdbc_password_filepath).strip) if @jdbc_password_filepath
231
231
 
232
232
  if enable_encoding?
233
- @converters = {}
234
- @columns_charset.each do |column_name, encoding|
235
- @converters[encoding] = LogStash::Util::Charset.new(encoding)
233
+ encodings = @columns_charset.values
234
+ encodings << @charset if @charset
235
+
236
+ @converters = encodings.each_with_object({}) do |encoding, converters|
237
+ converter = LogStash::Util::Charset.new(encoding)
238
+ converter.logger = self.logger
239
+ converters[encoding] = converter
236
240
  end
237
- @converters[@charset] = LogStash::Util::Charset.new(@charset) if @charset
238
241
  end
239
242
  end # def register
240
243
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-jdbc'
3
- s.version = '4.3.9'
3
+ s.version = '4.3.11'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Creates events from JDBC data"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -28,5 +28,5 @@ Gem::Specification.new do |s|
28
28
  s.add_development_dependency 'logstash-devutils'
29
29
  s.add_development_dependency 'timecop'
30
30
  s.add_development_dependency 'jdbc-derby'
31
- s.add_development_dependency 'jdbc-mysql'
31
+ s.add_development_dependency 'jdbc-postgres'
32
32
  end
@@ -2,8 +2,8 @@
2
2
  require "logstash/devutils/rspec/spec_helper"
3
3
  require "logstash/inputs/jdbc"
4
4
  require "jdbc/derby"
5
- require "jdbc/mysql"
6
- Jdbc::MySQL.load_driver
5
+ require 'jdbc/postgres'
6
+ Jdbc::Postgres.load_driver
7
7
  require "sequel"
8
8
  require "sequel/adapters/jdbc"
9
9
  require "timecop"
@@ -99,8 +99,8 @@ describe LogStash::Inputs::Jdbc do
99
99
  context "when connecting to a non-existent server", :no_connection => true do
100
100
  let(:mixin_settings) do
101
101
  super.merge(
102
- "jdbc_driver_class" => "com.mysql.jdbc.Driver",
103
- "jdbc_connection_string" => "jdbc:mysql://localhost:99999/somedb"
102
+ "jdbc_driver_class" => "org.postgresql.Driver",
103
+ "jdbc_connection_string" => "jdbc:postgresql://localhost:65000/somedb"
104
104
  )
105
105
  end
106
106
  let(:settings) { super.merge("statement" => "SELECT 1 as col1 FROM test_table", "jdbc_user" => "foo", "jdbc_password" => "bar") }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.9
4
+ version: 4.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -148,7 +148,7 @@ dependencies:
148
148
  - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
- name: jdbc-mysql
151
+ name: jdbc-postgres
152
152
  prerelease: false
153
153
  type: :development
154
154
  version_requirements: !ruby/object:Gem::Requirement
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.6.11
200
+ rubygems_version: 2.6.13
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Creates events from JDBC data