activerecord-rdb-adapter 0.9.5 → 0.9.6.beta1

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: 4a147858d2a76dfca27e8b900c18dd5d92ac8fb31f9bc0c6d79f4ef3aecd779c
4
- data.tar.gz: ee514927f5298d9adf2793832ade7745670d3d238c9824021c80091ae8192fc0
3
+ metadata.gz: 1c2f1b87f8c904bda69802b81d12822766bcfe2c1ebce119c5bcec8bb27f9c09
4
+ data.tar.gz: ce90448bb3f30f04ba1815cb421e3741173c0e4df4213bb2472f05e887444280
5
5
  SHA512:
6
- metadata.gz: 1421416290a95a71253bd3cbe51290eb3d29cb2953ac71c999945839bb35773afe1b8e774fbac5f7f1487906a2f9b60130cabeda4f84f1cdfa383e9b6942dd3b
7
- data.tar.gz: f7f52b16a8ff527556e14316f5c101e91d85724648418dbfe8b6040e11eb0bf5a5e372ca007a01ac3d3a41794a24520478f7c8d1a7b037665ece6a52aab315dd
6
+ metadata.gz: b7d723263d472773561d9e2477fa15c84607ceb9a1f16167462e9b5a311e148cd9b558e7eeeb5c56bfaabc2e7850911ea200ca1242823f10f94770e43d9bb376
7
+ data.tar.gz: 11aeb9acb22cdd1480ba996c609e0fa5c99bf43a5104d073f8b98d38c47b72736c1b9913dce7549d26f6f186580f6a76d8ac94f0b87e003699cccc4a330c3260
data/fb.c CHANGED
@@ -2168,15 +2168,8 @@ static VALUE cursor_execute(int argc, VALUE* argv, VALUE self)
2168
2168
  VALUE result;
2169
2169
  int state;
2170
2170
 
2171
- ISC_LONG statement_type = 0;
2172
- if (fb_connection->readonly_selects) {
2173
- statement_type = fb_statement_type(fb_connection, fb_cursor,args);
2174
- }
2175
- if (statement_type == isc_info_sql_stmt_select) {
2176
- fb_connection_transaction_start(fb_connection, rb_ro_trans_p());
2177
- } else {
2178
- fb_connection_transaction_start(fb_connection, Qnil);
2179
- }
2171
+ fb_connection_transaction_start(fb_connection, Qnil);
2172
+
2180
2173
  fb_cursor->auto_transact = fb_connection->transact;
2181
2174
 
2182
2175
  result = rb_protect(cursor_execute2, args, &state);
@@ -87,7 +87,7 @@ module ActiveRecord
87
87
  def _quote(value)
88
88
  case value
89
89
  when Time, DateTime
90
- "'#{value.strftime('%d.%m.%Y %H:%M')}'"
90
+ "'#{value.strftime('%d.%m.%Y %H:%M:%S')}'"
91
91
  when Date
92
92
  "'#{value.strftime('%d.%m.%Y')}'"
93
93
  else
@@ -33,9 +33,6 @@ module ActiveRecord
33
33
  super(connection, logger, config)
34
34
  # Our Responsibility
35
35
  @config = config
36
- @visitor = Arel::Visitors::Rdb.new self
37
- @prepared_statements = true
38
- @visitor.extend(DetermineIfPreparableVisitor)
39
36
  end
40
37
 
41
38
  def arel_visitor
@@ -92,7 +89,7 @@ module ActiveRecord
92
89
 
93
90
  def active?
94
91
  return false unless @connection.open?
95
- # return true if @connection.transaction_started
92
+
96
93
  @connection.query('SELECT 1 FROM RDB$DATABASE')
97
94
  true
98
95
  rescue StandardError
@@ -27,7 +27,7 @@ module ActiveRecord
27
27
  # config[:charset] = config[:charset].gsub(/-/, '') if config[:charset]
28
28
  # config[:encoding] = config[:encoding].gsub(/-/, '') if config[:encoding]
29
29
  config[:page_size] = 8192 unless config[:page_size]
30
- config[:readonly_selects] = true unless config[:readonly_selects].present?
30
+ # config[:readonly_selects] = true unless config[:readonly_selects].present?
31
31
  config
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-rdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Lobanov (RedSoft)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-03 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,9 +65,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">="
68
+ - - ">"
69
69
  - !ruby/object:Gem::Version
70
- version: '0'
70
+ version: 1.3.1
71
71
  requirements:
72
72
  - Firebird library fb
73
73
  rubygems_version: 3.0.3