jdbc-helper 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jdbc-helper/connection.rb +1 -1
  2. metadata +159 -138
@@ -246,7 +246,7 @@ class Connection
246
246
  rescue Transaction::Rollback
247
247
  status = :rolledback
248
248
  ensure
249
- @conn.rollback if status == :unknown
249
+ @conn.rollback if status == :unknown && @conn.get_auto_commit == false
250
250
  @conn.set_auto_commit ac
251
251
  end
252
252
  status == :committed
metadata CHANGED
@@ -1,153 +1,174 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jdbc-helper
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.7.2
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.7.3
6
6
  platform: ruby
7
- authors:
8
- - Junegunn Choi
9
- autorequire:
7
+ authors:
8
+ - Junegunn Choi
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-03-13 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: insensitive_hash
17
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: 0.2.3
23
- requirement: *id001
24
- prerelease: false
25
- type: :runtime
26
- - !ruby/object:Gem::Dependency
27
- name: bundler
28
- version_requirements: &id002 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: 1.0.0
34
- requirement: *id002
35
- prerelease: false
36
- type: :development
37
- - !ruby/object:Gem::Dependency
38
- name: jeweler
39
- version_requirements: &id003 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ~>
43
- - !ruby/object:Gem::Version
44
- version: 1.5.2
45
- requirement: *id003
46
- prerelease: false
47
- type: :development
48
- - !ruby/object:Gem::Dependency
49
- name: rcov
50
- version_requirements: &id004 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ~>
54
- - !ruby/object:Gem::Version
55
- version: "0.9"
56
- requirement: *id004
57
- prerelease: false
58
- type: :development
59
- - !ruby/object:Gem::Dependency
60
- name: test-unit
61
- version_requirements: &id005 !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: 2.3.0
67
- requirement: *id005
68
- prerelease: false
69
- type: :development
12
+ date: 2012-05-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: insensitive_hash
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: 0.2.3
21
+ none: false
22
+ requirement: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.3
27
+ none: false
28
+ prerelease: false
29
+ type: :runtime
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ version_requirements: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: 1.0.0
37
+ none: false
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ version: 1.0.0
43
+ none: false
44
+ prerelease: false
45
+ type: :development
46
+ - !ruby/object:Gem::Dependency
47
+ name: jeweler
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ~>
51
+ - !ruby/object:Gem::Version
52
+ version: 1.5.2
53
+ none: false
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ version: 1.5.2
59
+ none: false
60
+ prerelease: false
61
+ type: :development
62
+ - !ruby/object:Gem::Dependency
63
+ name: rcov
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '0.9'
69
+ none: false
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ version: '0.9'
75
+ none: false
76
+ prerelease: false
77
+ type: :development
78
+ - !ruby/object:Gem::Dependency
79
+ name: test-unit
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: 2.3.0
85
+ none: false
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: 2.3.0
91
+ none: false
92
+ prerelease: false
93
+ type: :development
70
94
  description: A JDBC helper for JRuby/Database developers.
71
95
  email: junegunn.c@gmail.com
72
96
  executables: []
73
-
74
97
  extensions: []
75
-
76
- extra_rdoc_files:
77
- - LICENSE.txt
78
- - README.markdown
79
- files:
80
- - lib/jdbc-helper.rb
81
- - lib/jdbc-helper/connection.rb
82
- - lib/jdbc-helper/connection/callable_statement.rb
83
- - lib/jdbc-helper/connection/parameterized_statement.rb
84
- - lib/jdbc-helper/connection/prepared_statement.rb
85
- - lib/jdbc-helper/connection/result_set_enumerator.rb
86
- - lib/jdbc-helper/connection/row.rb
87
- - lib/jdbc-helper/connection/statement_pool.rb
88
- - lib/jdbc-helper/connection/type_map.rb
89
- - lib/jdbc-helper/connector.rb
90
- - lib/jdbc-helper/connector/mysql_connector.rb
91
- - lib/jdbc-helper/connector/oracle_connector.rb
92
- - lib/jdbc-helper/connector/postgres_connector.rb
93
- - lib/jdbc-helper/connector/sql_server_connector.rb
94
- - lib/jdbc-helper/constants.rb
95
- - lib/jdbc-helper/sql/expression.rb
96
- - lib/jdbc-helper/sql/sql.rb
97
- - lib/jdbc-helper/sql/sql_prepared.rb
98
- - lib/jdbc-helper/wrapper/function_wrapper.rb
99
- - lib/jdbc-helper/wrapper/object_wrapper.rb
100
- - lib/jdbc-helper/wrapper/procedure_wrapper.rb
101
- - lib/jdbc-helper/wrapper/sequence_wrapper.rb
102
- - lib/jdbc-helper/wrapper/table_wrapper.rb
103
- - LICENSE.txt
104
- - README.markdown
105
- - test/database.yml
106
- - test/database.yml.local
107
- - test/helper.rb
108
- - test/performance.rb
109
- - test/test_connection.rb
110
- - test/test_connectors.rb
111
- - test/test_object_wrapper.rb
112
- - test/test_sql.rb
113
- - test/testrb
98
+ extra_rdoc_files:
99
+ - LICENSE.txt
100
+ - README.markdown
101
+ files:
102
+ - lib/jdbc-helper.rb
103
+ - lib/jdbc-helper/connection.rb
104
+ - lib/jdbc-helper/connection/callable_statement.rb
105
+ - lib/jdbc-helper/connection/parameterized_statement.rb
106
+ - lib/jdbc-helper/connection/prepared_statement.rb
107
+ - lib/jdbc-helper/connection/result_set_enumerator.rb
108
+ - lib/jdbc-helper/connection/row.rb
109
+ - lib/jdbc-helper/connection/statement_pool.rb
110
+ - lib/jdbc-helper/connection/type_map.rb
111
+ - lib/jdbc-helper/connector.rb
112
+ - lib/jdbc-helper/connector/mysql_connector.rb
113
+ - lib/jdbc-helper/connector/oracle_connector.rb
114
+ - lib/jdbc-helper/connector/postgres_connector.rb
115
+ - lib/jdbc-helper/connector/sql_server_connector.rb
116
+ - lib/jdbc-helper/constants.rb
117
+ - lib/jdbc-helper/sql/expression.rb
118
+ - lib/jdbc-helper/sql/sql.rb
119
+ - lib/jdbc-helper/sql/sql_prepared.rb
120
+ - lib/jdbc-helper/wrapper/function_wrapper.rb
121
+ - lib/jdbc-helper/wrapper/object_wrapper.rb
122
+ - lib/jdbc-helper/wrapper/procedure_wrapper.rb
123
+ - lib/jdbc-helper/wrapper/sequence_wrapper.rb
124
+ - lib/jdbc-helper/wrapper/table_wrapper.rb
125
+ - LICENSE.txt
126
+ - README.markdown
127
+ - test/database.yml
128
+ - test/database.yml.local
129
+ - test/helper.rb
130
+ - test/performance.rb
131
+ - test/test_connection.rb
132
+ - test/test_connectors.rb
133
+ - test/test_object_wrapper.rb
134
+ - test/test_sql.rb
135
+ - test/testrb
114
136
  homepage: http://github.com/junegunn/jdbc-helper
115
- licenses:
116
- - MIT
117
- post_install_message:
137
+ licenses:
138
+ - MIT
139
+ post_install_message:
118
140
  rdoc_options: []
119
-
120
- require_paths:
121
- - lib
122
- required_ruby_version: !ruby/object:Gem::Requirement
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ segments:
148
+ - 0
149
+ hash: 2
150
+ version: '0'
123
151
  none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 2
128
- segments:
129
- - 0
130
- version: "0"
131
- required_rubygems_version: !ruby/object:Gem::Requirement
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ! '>='
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
132
157
  none: false
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- version: "0"
137
158
  requirements: []
138
-
139
- rubyforge_project:
140
- rubygems_version: 1.8.15
141
- signing_key:
159
+ rubyforge_project:
160
+ rubygems_version: 1.8.21
161
+ signing_key:
142
162
  specification_version: 3
143
163
  summary: A JDBC helper for JRuby/Database developers.
144
- test_files:
145
- - test/database.yml
146
- - test/database.yml.local
147
- - test/helper.rb
148
- - test/performance.rb
149
- - test/test_connection.rb
150
- - test/test_connectors.rb
151
- - test/test_object_wrapper.rb
152
- - test/test_sql.rb
153
- - test/testrb
164
+ test_files:
165
+ - test/database.yml
166
+ - test/database.yml.local
167
+ - test/helper.rb
168
+ - test/performance.rb
169
+ - test/test_connection.rb
170
+ - test/test_connectors.rb
171
+ - test/test_object_wrapper.rb
172
+ - test/test_sql.rb
173
+ - test/testrb
174
+ ...