[Ruby-oci8-commit] [230] trunk/ruby-oci8: * ext/oci8/stmt.c, lib/oci8/oci8.rb: delete a private method
nobody at rubyforge.org
nobody at rubyforge.org
Tue Dec 4 08:40:03 EST 2007
Revision: 230
Author: kubo
Date: 2007-12-04 08:40:03 -0500 (Tue, 04 Dec 2007)
Log Message:
-----------
* ext/oci8/stmt.c, lib/oci8/oci8.rb: delete a private method
OCI8::Curosr#__connection and use @con instead.
Modified Paths:
--------------
trunk/ruby-oci8/ChangeLog
trunk/ruby-oci8/ext/oci8/stmt.c
trunk/ruby-oci8/lib/oci8/oci8.rb
Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog 2007-12-04 12:57:51 UTC (rev 229)
+++ trunk/ruby-oci8/ChangeLog 2007-12-04 13:40:03 UTC (rev 230)
@@ -1,4 +1,8 @@
2007-12-04 KUBO Takehiro <kubo at jiubao.org>
+ * ext/oci8/stmt.c, lib/oci8/oci8.rb: delete a private method
+ OCI8::Curosr#__connection and use @con instead.
+
+2007-12-04 KUBO Takehiro <kubo at jiubao.org>
* ext/oci8/extconf.rb: compile xmldb.o by default.
* ext/oci8/lob.c, ext/oci8/metadata.c, ext/oci8/oci8.c: use
functions which ends with _nb instead of normal OCI functions
Modified: trunk/ruby-oci8/ext/oci8/stmt.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/stmt.c 2007-12-04 12:57:51 UTC (rev 229)
+++ trunk/ruby-oci8/ext/oci8/stmt.c 2007-12-04 13:40:03 UTC (rev 230)
@@ -518,12 +518,6 @@
return oci8_get_ub4_attr(DATA_PTR(self), OCI_ATTR_PARAM_COUNT);
}
-static VALUE oci8_stmt_connection(VALUE self)
-{
- oci8_stmt_t *stmt = DATA_PTR(self);
- return stmt->svc;
-}
-
/*
* Gets the value of the bind variable.
*
@@ -718,7 +712,6 @@
rb_define_method(cOCIStmt, "row_count", oci8_stmt_get_row_count, 0);
rb_define_method(cOCIStmt, "rowid", oci8_stmt_get_rowid, 0);
rb_define_private_method(cOCIStmt, "__param_count", oci8_stmt_get_param_count, 0);
- rb_define_private_method(cOCIStmt, "__connection", oci8_stmt_connection, 0);
rb_define_method(cOCIStmt, "[]", oci8_stmt_aref, 1);
rb_define_method(cOCIStmt, "[]=", oci8_stmt_aset, 2);
rb_define_method(cOCIStmt, "keys", oci8_stmt_keys, 0);
Modified: trunk/ruby-oci8/lib/oci8/oci8.rb
===================================================================
--- trunk/ruby-oci8/lib/oci8/oci8.rb 2007-12-04 12:57:51 UTC (rev 229)
+++ trunk/ruby-oci8/lib/oci8/oci8.rb 2007-12-04 13:40:03 UTC (rev 230)
@@ -423,7 +423,7 @@
bindclass = OCI8::BindType::Mapping[key]
raise "unsupported datatype: #{key}" if bindclass.nil?
- bindclass.create(__connection, val, param, max_array_size)
+ bindclass.create(@con, val, param, max_array_size)
end
def define_columns
More information about the ruby-oci8-commit
mailing list