swift-db-postgres 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.3 (2012-07-31)
2
+
3
+ * remove rb_protect from Result#each.
4
+
1
5
  == 0.2.2 (2012-07-30)
2
6
 
3
7
  * removed rb_gc_mark called outside mark phase.
@@ -368,7 +368,7 @@ VALUE db_postgres_adapter_native(VALUE self) {
368
368
 
369
369
  native = a->native;
370
370
  a->native = 1;
371
- result = rb_protect(rb_yield, Qnil, &status);
371
+ result = rb_protect(rb_yield, Qnil, &status);
372
372
  a->native = native;
373
373
  if (status)
374
374
  rb_jump_tag(status);
@@ -98,7 +98,7 @@ VALUE db_postgres_result_load(VALUE self, PGresult *result) {
98
98
 
99
99
  VALUE db_postgres_result_each(VALUE self) {
100
100
  VALUE tuple;
101
- int row, col, status;
101
+ int row, col;
102
102
  Result *r = db_postgres_result_handle(self);
103
103
 
104
104
  if (!r->result)
@@ -121,11 +121,9 @@ VALUE db_postgres_result_each(VALUE self) {
121
121
  );
122
122
  }
123
123
  }
124
- rb_protect(rb_yield, tuple, &status);
125
- if (status != 0)
126
- rb_jump_tag(status);
124
+ rb_yield(tuple);
127
125
  }
128
- return Qnil;
126
+ return Qtrue;
129
127
  }
130
128
 
131
129
  VALUE db_postgres_result_selected_rows(VALUE self) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swift-db-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -35,8 +35,8 @@ extensions:
35
35
  - ext/swift/db/postgres/extconf.rb
36
36
  extra_rdoc_files: []
37
37
  files:
38
- - ext/swift/db/postgres/datetime.c
39
38
  - ext/swift/db/postgres/result.c
39
+ - ext/swift/db/postgres/datetime.c
40
40
  - ext/swift/db/postgres/adapter.c
41
41
  - ext/swift/db/postgres/typecast.c
42
42
  - ext/swift/db/postgres/common.c