activerecord-fb-adapter 0.7.0 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -443,7 +443,7 @@ module ActiveRecord
443
443
  if column && [:integer, :float].include?(column.type)
444
444
  value = column.type == :integer ? value.to_i : value.to_f
445
445
  value.to_s
446
- elsif column && column.type != :binary && value.size < 256
446
+ elsif column && column.type != :binary && value.size < 256 && !value.include?('@')
447
447
  "'#{quote_string(value)}'"
448
448
  else
449
449
  "@#{Base64.encode64(value).chop}@"
@@ -545,17 +545,17 @@ module ActiveRecord
545
545
  end
546
546
 
547
547
  # Executes the SQL statement in the context of this connection.
548
- # def execute(sql, name = nil, skip_logging = false)
549
- # translate(sql) do |sql, args|
550
- # if (name == :skip_logging) or skip_logging
551
- # @connection.execute(sql, *args)
552
- # else
553
- # log(sql, args, name) do
554
- # @connection.execute(sql, *args)
555
- # end
556
- # end
557
- # end
558
- # end
548
+ def execute(sql, name = nil, skip_logging = false)
549
+ translate(sql) do |sql, args|
550
+ if (name == :skip_logging) or skip_logging
551
+ @connection.execute(sql, *args)
552
+ else
553
+ log(sql, args, name) do
554
+ @connection.execute(sql, *args)
555
+ end
556
+ end
557
+ end
558
+ end
559
559
 
560
560
  # Executes +sql+ statement in the context of this connection using
561
561
  # +binds+ as the bind substitutes. +name+ is logged along with
metadata CHANGED
@@ -1,63 +1,82 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: activerecord-fb-adapter
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 7
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 2
10
+ version: 0.7.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Brent Rowland
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-05-07 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-09-18 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: fb
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 0.7.0
22
- type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ - 7
33
+ - 0
29
34
  version: 0.7.0
35
+ type: :runtime
36
+ version_requirements: *id001
30
37
  description:
31
38
  email: rowland@rowlandresearch.com
32
39
  executables: []
40
+
33
41
  extensions: []
42
+
34
43
  extra_rdoc_files: []
35
- files:
44
+
45
+ files:
36
46
  - lib/active_record/connection_adapters/fb_adapter.rb
47
+ has_rdoc: true
37
48
  homepage: http://github.com/rowland/activerecord-fb-adapter
38
49
  licenses: []
50
+
39
51
  post_install_message:
40
52
  rdoc_options: []
41
- require_paths:
53
+
54
+ require_paths:
42
55
  - lib
43
- required_ruby_version: !ruby/object:Gem::Requirement
56
+ required_ruby_version: !ruby/object:Gem::Requirement
44
57
  none: false
45
- requirements:
46
- - - ! '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
66
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- requirements:
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ requirements:
56
75
  - Firebird library fb
57
76
  rubyforge_project:
58
- rubygems_version: 1.8.23
77
+ rubygems_version: 1.4.2
59
78
  signing_key:
60
79
  specification_version: 3
61
- summary: ActiveRecord Firebird Adapter for Rails 3. Unlike fb_adapter for Rails 1.x
62
- and 2.x, this version attempts to support migrations.
80
+ summary: ActiveRecord Firebird Adapter for Rails 3. Unlike fb_adapter for Rails 1.x and 2.x, this version attempts to support migrations.
63
81
  test_files: []
82
+