ruby-postgres 0.7.1.2005.12.20-mswin32 → 0.7.1.2005.12.21-mswin32

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.
data/postgres.c CHANGED
@@ -547,7 +547,7 @@ pgconn_exec(argc, argv, obj)
547
547
  result = PQexecParams(conn, StringValuePtr(command), len, NULL, values, NULL, NULL, 0);
548
548
  #else
549
549
  for (i = 0; i < len; i++) {
550
- rb_ary_push(params, pgconn_s_quote(rb_cPGconn, rb_ary_entry(params, i)));
550
+ rb_ary_store(params, i, pgconn_s_quote(rb_cPGconn, rb_ary_entry(params, i)));
551
551
  }
552
552
  result = PQexecParams_compat(conn, command, params);
553
553
  #endif
@@ -1287,7 +1287,8 @@ fetch_pgrow(self, fields, row_num)
1287
1287
  VALUE row = rb_funcall(rb_cPGrow, rb_intern("new"), 1, fields);
1288
1288
  int field_num;
1289
1289
  for (field_num = 0; field_num < RARRAY(fields)->len; field_num++) {
1290
- rb_ary_push(row, fetch_pgresult(result, row_num, field_num));
1290
+ /* don't use push, PGrow is sized with nils in #new */
1291
+ rb_ary_store(row, field_num, fetch_pgresult(result, row_num, field_num));
1291
1292
  }
1292
1293
  return row;
1293
1294
  }
data/postgres.o CHANGED
Binary file
data/postgres.so CHANGED
Binary file
@@ -5,7 +5,7 @@ SPEC = Gem::Specification.new do |s|
5
5
  s.name = 'ruby-postgres'
6
6
  s.rubyforge_project = 'ruby-postgres'
7
7
  s.version = "0.7.1.#{Date.today}".tr('-', '.')
8
- s.summary = 'Ruby extension for PostgreSQL database coordination'
8
+ s.summary = 'Ruby extension library providing an API to PostgreSQL'
9
9
  s.author = 'Yukihiro Matsumoto, Eiji Matsumoto, Noboru Saitou, Dave Lee'
10
10
  s.email = 'davelee.com@gmail.com'
11
11
  s.homepage = 'http://ruby.scripting.ca/postgres/'
metadata CHANGED
@@ -3,9 +3,9 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: ruby-postgres
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.1.2005.12.20
7
- date: 2005-12-20
8
- summary: Ruby extension for PostgreSQL database coordination
6
+ version: 0.7.1.2005.12.21
7
+ date: 2005-12-21
8
+ summary: Ruby extension library providing an API to PostgreSQL
9
9
  require_paths:
10
10
  - "."
11
11
  email: davelee.com@gmail.com