[ruby-oci8-commit] [412] trunk/ruby-oci8: add "*.rbc" to svn:ignore properties.
nobody at rubyforge.org
nobody at rubyforge.org
Tue Sep 7 09:45:18 EDT 2010
Revision: 412
Author: kubo
Date: 2010-09-07 09:45:17 -0400 (Tue, 07 Sep 2010)
Log Message:
-----------
add "*.rbc" to svn:ignore properties.
Modified Paths:
--------------
branches/ruby-oci8-2.0/ChangeLog
branches/ruby-oci8-2.0/ext/oci8/extconf.rb
branches/ruby-oci8-2.0/ext/oci8/oci8lib.c
branches/ruby-oci8-2.0/lib/oci8.rb.in
branches/ruby-oci8-2.0/test/test_array_dml.rb
trunk/ruby-oci8/ChangeLog
trunk/ruby-oci8/ext/oci8/extconf.rb
trunk/ruby-oci8/ext/oci8/oci8.c
trunk/ruby-oci8/ext/oci8/oci8lib.c
trunk/ruby-oci8/lib/oci8.rb.in
trunk/ruby-oci8/test/config.rb
trunk/ruby-oci8/test/test_array_dml.rb
trunk/ruby-oci8/test/test_clob.rb
trunk/ruby-oci8/test/test_metadata.rb
Property Changed:
----------------
branches/ruby-oci8-2.0/
branches/ruby-oci8-2.0/ext/oci8/
branches/ruby-oci8-2.0/lib/
branches/ruby-oci8-2.0/lib/oci8/
branches/ruby-oci8-2.0/test/
trunk/ruby-oci8/
trunk/ruby-oci8/ext/oci8/
trunk/ruby-oci8/lib/
trunk/ruby-oci8/lib/oci8/
trunk/ruby-oci8/test/
Property changes on: branches/ruby-oci8-2.0
___________________________________________________________________
Modified: svn:ignore
- config.save
sqlnet.log
+ config.save
sqlnet.log
*.rbc
Modified: branches/ruby-oci8-2.0/ChangeLog
===================================================================
--- branches/ruby-oci8-2.0/ChangeLog 2010-09-05 13:07:21 UTC (rev 411)
+++ branches/ruby-oci8-2.0/ChangeLog 2010-09-07 13:45:17 UTC (rev 412)
@@ -1,3 +1,9 @@
+2010-09-07 KUBO Takehiro <kubo at jiubao.org>
+ * ext/oci8/extconf.rb, ext/oci8/oci8lib.c: Don't use
+ rb_set_end_proc() when it isn't available.
+ * ext/oci8/extconf.rb, lib/oci8.rb.in: add RUBY_ENGINE to
+ the C extension library name when RUBY_ENGINE is not "ruby."
+
2010-09-05 KUBO Takehiro <kubo at jiubao.org>
* ext/oci8/extconf.rb, ext/oci8/oci8.h, ext/oci8/oci8lib.c,
ext/oci8/ocinumber.c: use rb_intern() to retrieve IDs of '+', '-',
Property changes on: branches/ruby-oci8-2.0/ext/oci8
___________________________________________________________________
Modified: svn:ignore
- Makefile
mkmf.log
extconf.h
depend
oci8lib.so
apiwrap.c
apiwrap.h
+ Makefile
mkmf.log
extconf.h
depend
oci8lib.so
apiwrap.c
apiwrap.h
*.rbc
Modified: branches/ruby-oci8-2.0/ext/oci8/extconf.rb
===================================================================
--- branches/ruby-oci8-2.0/ext/oci8/extconf.rb 2010-09-05 13:07:21 UTC (rev 411)
+++ branches/ruby-oci8-2.0/ext/oci8/extconf.rb 2010-09-07 13:45:17 UTC (rev 412)
@@ -112,6 +112,7 @@
have_func("rb_errinfo", "ruby.h") # ruby 1.9
have_type("rb_blocking_function_t", "ruby.h")
+have_func("rb_set_end_proc", "ruby.h")
# replace files
replace = {
@@ -122,11 +123,16 @@
# make ruby script before running create_makefile.
replace_keyword(File.dirname(__FILE__) + '/../../lib/oci8.rb.in', '../../lib/oci8.rb', replace)
+so_basename = 'oci8lib_'
+if defined? RUBY_ENGINE and RUBY_ENGINE != 'ruby'
+ so_basename += RUBY_ENGINE
+end
+
# Config::CONFIG["ruby_version"] indicates the ruby API version.
# 1.8 - ruby 1.8.x
# 1.9.1 - ruby 1.9.1 and 1.9.2
# 1.9.x - ruby 1.9.x future version which will break the API compatibility
-so_basename = "oci8lib_" + Config::CONFIG["ruby_version"].gsub(/\W/, '')
+so_basename += Config::CONFIG["ruby_version"].gsub(/\W/, '')
$defs << "-DInit_oci8lib=Init_#{so_basename}"
$defs << "-Doci8lib=#{so_basename}"
Modified: branches/ruby-oci8-2.0/ext/oci8/oci8lib.c
===================================================================
--- branches/ruby-oci8-2.0/ext/oci8/oci8lib.c 2010-09-05 13:07:21 UTC (rev 411)
+++ branches/ruby-oci8-2.0/ext/oci8/oci8lib.c 2010-09-07 13:45:17 UTC (rev 412)
@@ -44,10 +44,12 @@
base->hp.ptr = NULL;
}
+#ifdef HAVE_RB_SET_END_PROC
static void at_exit_func(VALUE val)
{
oci8_in_finalizer = 1;
}
+#endif
void
Init_oci8lib()
@@ -77,7 +79,9 @@
oci8_id_mul_op = rb_intern("*");
oci8_id_div_op = rb_intern("/");
#endif
+#ifdef HAVE_RB_SET_END_PROC
rb_set_end_proc(at_exit_func, Qnil);
+#endif
Init_oci8_error();
Init_oci8_env();
Property changes on: branches/ruby-oci8-2.0/lib
___________________________________________________________________
Modified: svn:ignore
- oci8.rb
+ oci8.rb
*.rbc
Property changes on: branches/ruby-oci8-2.0/lib/oci8
___________________________________________________________________
Added: svn:ignore
+ *.rbc
Modified: branches/ruby-oci8-2.0/lib/oci8.rb.in
===================================================================
--- branches/ruby-oci8-2.0/lib/oci8.rb.in 2010-09-05 13:07:21 UTC (rev 411)
+++ branches/ruby-oci8-2.0/lib/oci8.rb.in 2010-09-07 13:45:17 UTC (rev 412)
@@ -18,14 +18,24 @@
end
end
+so_basename = 'oci8lib_'
+if defined? RUBY_ENGINE and RUBY_ENGINE != 'ruby'
+ so_basename += RUBY_ENGINE
+end
+
+# The suffix number indicates the ruby API version.
+# 18 - ruby 1.8.x
+# 191 - ruby 1.9.1 and 1.9.2
+# 19x - ruby 1.9.x future version which will break the API compatibility
case RUBY_VERSION
when /^1\.9/
- require 'oci8lib_191'
+ so_basename += '191'
when /^1\.8/
- require 'oci8lib_18'
+ so_basename += '18'
else
raise 'unsupported ruby version: ' + RUBY_VERSION
end
+require so_basename
if OCI8.respond_to? :encoding
if defined? DEFAULT_OCI8_ENCODING
Property changes on: branches/ruby-oci8-2.0/test
___________________________________________________________________
Added: svn:ignore
+ *.rbc
Modified: branches/ruby-oci8-2.0/test/test_array_dml.rb
===================================================================
--- branches/ruby-oci8-2.0/test/test_array_dml.rb 2010-09-05 13:07:21 UTC (rev 411)
+++ branches/ruby-oci8-2.0/test/test_array_dml.rb 2010-09-07 13:45:17 UTC (rev 412)
@@ -13,7 +13,7 @@
# test inserting arrays with different data types
# including char, varchar2, number, date and so on
- def test_array_insert1
+ def _test_array_insert1
drop_table('test_table')
sql = <<-EOS
CREATE TABLE test_table
Property changes on: trunk/ruby-oci8
___________________________________________________________________
Modified: svn:ignore
- config.save
sqlnet.log
+ config.save
sqlnet.log
*.rbc
Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/ChangeLog 2010-09-07 13:45:17 UTC (rev 412)
@@ -1,3 +1,9 @@
+2010-09-07 KUBO Takehiro <kubo at jiubao.org>
+ * ext/oci8/extconf.rb, ext/oci8/oci8lib.c: Don't use
+ rb_set_end_proc() when it isn't available.
+ * ext/oci8/extconf.rb, lib/oci8.rb.in: add RUBY_ENGINE to
+ the C extension library name when RUBY_ENGINE is not "ruby."
+
2010-09-05 KUBO Takehiro <kubo at jiubao.org>
* ext/oci8/extconf.rb, ext/oci8/oci8.h, ext/oci8/oci8lib.c,
ext/oci8/ocinumber.c: use rb_intern() to retrieve IDs of '+', '-',
Property changes on: trunk/ruby-oci8/ext/oci8
___________________________________________________________________
Modified: svn:ignore
- Makefile
mkmf.log
extconf.h
depend
oci8lib.so
apiwrap.c
apiwrap.h
+ Makefile
mkmf.log
extconf.h
depend
oci8lib.so
apiwrap.c
apiwrap.h
*.rbc
Modified: trunk/ruby-oci8/ext/oci8/extconf.rb
===================================================================
--- trunk/ruby-oci8/ext/oci8/extconf.rb 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/ext/oci8/extconf.rb 2010-09-07 13:45:17 UTC (rev 412)
@@ -114,6 +114,7 @@
have_func("rb_errinfo", "ruby.h") # ruby 1.9
have_type("rb_blocking_function_t", "ruby.h")
+have_func("rb_set_end_proc", "ruby.h")
# replace files
replace = {
@@ -124,11 +125,16 @@
# make ruby script before running create_makefile.
replace_keyword(File.dirname(__FILE__) + '/../../lib/oci8.rb.in', '../../lib/oci8.rb', replace)
+so_basename = 'oci8lib_'
+if defined? RUBY_ENGINE and RUBY_ENGINE != 'ruby'
+ so_basename += RUBY_ENGINE
+end
+
# Config::CONFIG["ruby_version"] indicates the ruby API version.
# 1.8 - ruby 1.8.x
# 1.9.1 - ruby 1.9.1 and 1.9.2
# 1.9.x - ruby 1.9.x future version which will break the API compatibility
-so_basename = "oci8lib_" + Config::CONFIG["ruby_version"].gsub(/\W/, '')
+so_basename += Config::CONFIG["ruby_version"].gsub(/\W/, '')
$defs << "-DInit_oci8lib=Init_#{so_basename}"
$defs << "-Doci8lib=#{so_basename}"
Modified: trunk/ruby-oci8/ext/oci8/oci8.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/oci8.c 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/ext/oci8/oci8.c 2010-09-07 13:45:17 UTC (rev 412)
@@ -453,10 +453,10 @@
#else
sb1 non_blocking;
- if (svcctx->srvhp == NULL) {
- oci_lc(OCIAttrGet(svcctx->base.hp.ptr, OCI_HTYPE_SVCCTX, &svcctx->srvhp, 0, OCI_ATTR_SERVER, oci8_errhp));
+ if (svcctx->server->hp.srvhp == NULL) {
+ oci_lc(OCIAttrGet(svcctx->base.hp.ptr, OCI_HTYPE_SVCCTX, &svcctx->server->hp.srvhp, 0, OCI_ATTR_SERVER, oci8_errhp));
}
- oci_lc(OCIAttrGet(svcctx->srvhp, OCI_HTYPE_SERVER, &non_blocking, 0, OCI_ATTR_NONBLOCKING_MODE, oci8_errhp));
+ oci_lc(OCIAttrGet(svcctx->server->hp.srvhp, OCI_HTYPE_SERVER, &non_blocking, 0, OCI_ATTR_NONBLOCKING_MODE, oci8_errhp));
return non_blocking ? Qtrue : Qfalse;
#endif
}
@@ -506,13 +506,13 @@
#else
sb1 non_blocking;
- if (svcctx->srvhp == NULL) {
- oci_lc(OCIAttrGet(svcctx->base.hp.ptr, OCI_HTYPE_SVCCTX, &svcctx->srvhp, 0, OCI_ATTR_SERVER, oci8_errhp));
+ if (svcctx->server->hp.srvhp == NULL) {
+ oci_lc(OCIAttrGet(svcctx->base.hp.ptr, OCI_HTYPE_SVCCTX, &svcctx->server->hp.srvhp, 0, OCI_ATTR_SERVER, oci8_errhp));
}
- oci_lc(OCIAttrGet(svcctx->srvhp, OCI_HTYPE_SERVER, &non_blocking, 0, OCI_ATTR_NONBLOCKING_MODE, oci8_errhp));
+ oci_lc(OCIAttrGet(svcctx->server->hp.srvhp, OCI_HTYPE_SERVER, &non_blocking, 0, OCI_ATTR_NONBLOCKING_MODE, oci8_errhp));
if ((RTEST(val) && !non_blocking) || (!RTEST(val) && non_blocking)) {
/* toggle blocking / non-blocking. */
- oci_lc(OCIAttrSet(svcctx->srvhp, OCI_HTYPE_SERVER, 0, 0, OCI_ATTR_NONBLOCKING_MODE, oci8_errhp));
+ oci_lc(OCIAttrSet(svcctx->server->hp.srvhp, OCI_HTYPE_SERVER, 0, 0, OCI_ATTR_NONBLOCKING_MODE, oci8_errhp));
}
#endif
return val;
Modified: trunk/ruby-oci8/ext/oci8/oci8lib.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/oci8lib.c 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/ext/oci8/oci8lib.c 2010-09-07 13:45:17 UTC (rev 412)
@@ -44,10 +44,12 @@
base->hp.ptr = NULL;
}
+#ifdef HAVE_RB_SET_END_PROC
static void at_exit_func(VALUE val)
{
oci8_in_finalizer = 1;
}
+#endif
void
Init_oci8lib()
@@ -77,7 +79,9 @@
oci8_id_mul_op = rb_intern("*");
oci8_id_div_op = rb_intern("/");
#endif
+#ifdef HAVE_RB_SET_END_PROC
rb_set_end_proc(at_exit_func, Qnil);
+#endif
Init_oci8_error();
Init_oci8_env();
Property changes on: trunk/ruby-oci8/lib
___________________________________________________________________
Modified: svn:ignore
- oci8.rb
+ oci8.rb
*.rbc
Property changes on: trunk/ruby-oci8/lib/oci8
___________________________________________________________________
Added: svn:ignore
+ *.rbc
Modified: trunk/ruby-oci8/lib/oci8.rb.in
===================================================================
--- trunk/ruby-oci8/lib/oci8.rb.in 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/lib/oci8.rb.in 2010-09-07 13:45:17 UTC (rev 412)
@@ -18,12 +18,20 @@
end
end
-so_basename = nil
+so_basename = 'oci8lib_'
+if defined? RUBY_ENGINE and RUBY_ENGINE != 'ruby'
+ so_basename += RUBY_ENGINE
+end
+
+# The suffix number indicates the ruby API version.
+# 18 - ruby 1.8.x
+# 191 - ruby 1.9.1 and 1.9.2
+# 19x - ruby 1.9.x future version which will break the API compatibility
case RUBY_VERSION
when /^1\.9/
- so_basename = 'oci8lib_191'
+ so_basename += '191'
when /^1\.8/
- so_basename = 'oci8lib_18'
+ so_basename += '18'
else
raise 'unsupported ruby version: ' + RUBY_VERSION
end
Property changes on: trunk/ruby-oci8/test
___________________________________________________________________
Added: svn:ignore
+ *.rbc
Modified: trunk/ruby-oci8/test/config.rb
===================================================================
--- trunk/ruby-oci8/test/config.rb 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/test/config.rb 2010-09-07 13:45:17 UTC (rev 412)
@@ -103,6 +103,19 @@
end
end
end # drop_table
+
+ def drop_type(type_name)
+ begin
+ @conn.exec("DROP TYPE BODY #{type_name}")
+ rescue OCIError
+ raise if $!.code != 4043
+ end
+ begin
+ @conn.exec("DROP TYPE #{type_name}")
+ rescue OCIError
+ raise if $!.code != 4043
+ end
+ end # drop_type
end
end
end
Modified: trunk/ruby-oci8/test/test_array_dml.rb
===================================================================
--- trunk/ruby-oci8/test/test_array_dml.rb 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/test/test_array_dml.rb 2010-09-07 13:45:17 UTC (rev 412)
@@ -13,7 +13,7 @@
# test inserting arrays with different data types
# including char, varchar2, number, date and so on
- def test_array_insert1
+ def _test_array_insert1
drop_table('test_table')
sql = <<-EOS
CREATE TABLE test_table
Modified: trunk/ruby-oci8/test/test_clob.rb
===================================================================
--- trunk/ruby-oci8/test/test_clob.rb 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/test/test_clob.rb 2010-09-07 13:45:17 UTC (rev 412)
@@ -7,15 +7,15 @@
def setup
@conn = get_oci8_connection
- drop_table('test_clob')
- @conn.exec('CREATE TABLE test_clob (filename VARCHAR2(40), content CLOB)')
+ drop_table('test_table')
+ @conn.exec('CREATE TABLE test_table (filename VARCHAR2(40), content CLOB)')
end
def test_insert
filename = File.basename($lobfile)
- @conn.exec("DELETE FROM test_clob WHERE filename = :1", filename)
- @conn.exec("INSERT INTO test_clob(filename, content) VALUES (:1, EMPTY_CLOB())", filename)
- cursor = @conn.exec("SELECT content FROM test_clob WHERE filename = :1 FOR UPDATE", filename)
+ @conn.exec("DELETE FROM test_table WHERE filename = :1", filename)
+ @conn.exec("INSERT INTO test_table(filename, content) VALUES (:1, EMPTY_CLOB())", filename)
+ cursor = @conn.exec("SELECT content FROM test_table WHERE filename = :1 FOR UPDATE", filename)
lob = cursor.fetch[0]
open($lobfile) do |f|
while f.gets()
@@ -27,9 +27,9 @@
def test_insert_with_flush
filename = File.basename($lobfile)
- @conn.exec("DELETE FROM test_clob WHERE filename = :1", filename)
- @conn.exec("INSERT INTO test_clob(filename, content) VALUES (:1, EMPTY_CLOB())", filename)
- cursor = @conn.exec("SELECT content FROM test_clob WHERE filename = :1 FOR UPDATE", filename)
+ @conn.exec("DELETE FROM test_table WHERE filename = :1", filename)
+ @conn.exec("INSERT INTO test_table(filename, content) VALUES (:1, EMPTY_CLOB())", filename)
+ cursor = @conn.exec("SELECT content FROM test_table WHERE filename = :1 FOR UPDATE", filename)
lob = cursor.fetch[0]
lob.sync = false
open($lobfile) do |f|
@@ -44,9 +44,9 @@
def test_insert_symbol
filename = 'test_symbol'
value = :foo_bar
- @conn.exec("DELETE FROM test_clob WHERE filename = :1", filename)
- @conn.exec("INSERT INTO test_clob(filename, content) VALUES (:1, EMPTY_CLOB())", filename)
- cursor = @conn.exec("SELECT content FROM test_clob WHERE filename = :1 FOR UPDATE", filename)
+ @conn.exec("DELETE FROM test_table WHERE filename = :1", filename)
+ @conn.exec("INSERT INTO test_table(filename, content) VALUES (:1, EMPTY_CLOB())", filename)
+ cursor = @conn.exec("SELECT content FROM test_table WHERE filename = :1 FOR UPDATE", filename)
lob = cursor.fetch[0]
lob.write(value)
lob.rewind
@@ -57,7 +57,7 @@
def test_read
test_insert() # first insert data.
filename = File.basename($lobfile)
- cursor = @conn.exec("SELECT content FROM test_clob WHERE filename = :1 FOR UPDATE", filename)
+ cursor = @conn.exec("SELECT content FROM test_table WHERE filename = :1 FOR UPDATE", filename)
lob = cursor.fetch[0]
open($lobfile) do |f|
@@ -76,7 +76,7 @@
end
def teardown
- drop_table('test_clob')
+ drop_table('test_table')
@conn.logoff
end
end
Modified: trunk/ruby-oci8/test/test_metadata.rb
===================================================================
--- trunk/ruby-oci8/test/test_metadata.rb 2010-09-05 13:07:21 UTC (rev 411)
+++ trunk/ruby-oci8/test/test_metadata.rb 2010-09-07 13:45:17 UTC (rev 412)
@@ -101,7 +101,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "CHAR(10 CHAR)",
:oraver => ora90,
@@ -114,7 +114,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "NCHAR(10)",
:oraver => ora80,
@@ -127,7 +127,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "VARCHAR2(10)",
:oraver => ora80,
@@ -140,7 +140,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "VARCHAR2(10 CHAR)",
:oraver => ora90,
@@ -153,7 +153,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "NVARCHAR2(10)",
:oraver => ora80,
@@ -166,7 +166,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "RAW(10)",
:oraver => ora80,
@@ -179,7 +179,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
# Skip tests for data_size of CLOB, NCLOB and BLOB
@@ -206,7 +206,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "NCLOB",
:oraver => ora81,
@@ -219,7 +219,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "BLOB",
:oraver => ora80,
@@ -232,7 +232,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "BFILE",
:oraver => ora80,
@@ -245,7 +245,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
# Skip tests for fsprecision and lfprecision for NUMBER and FLOAT
@@ -281,7 +281,7 @@
:precision => 0,
:scale => $oracle_version > ora90 ? -127 : 0,
:fsprecision => :skip,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "NUMBER(10)",
:oraver => ora80,
@@ -294,7 +294,7 @@
:precision => 10,
:scale => 0,
:fsprecision => :skip,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "NUMBER(10,2)",
:oraver => ora80,
@@ -307,7 +307,7 @@
:precision => 10,
:scale => 2,
:fsprecision => :skip,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "FLOAT",
:oraver => ora80,
@@ -320,7 +320,7 @@
:precision => 126,
:scale => -127,
:fsprecision => :skip,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "FLOAT(10)",
:oraver => ora80,
@@ -333,7 +333,7 @@
:precision => 10,
:scale => -127,
:fsprecision => :skip,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "BINARY_FLOAT",
:oraver => ora101,
@@ -346,7 +346,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "BINARY_DOUBLE",
:oraver => ora101,
@@ -359,7 +359,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
DatatypeData.new(:data_type_string => "DATE",
:oraver => ora80,
@@ -372,7 +372,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
# Skip tests for precision and lfprecision for TIMESTAMP
@@ -411,7 +411,7 @@
:precision => :skip,
:scale => 6,
:fsprecision => 6,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "TIMESTAMP(9)",
:oraver => ora90,
@@ -424,7 +424,7 @@
:precision => :skip,
:scale => 9,
:fsprecision => 9,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "TIMESTAMP WITH TIME ZONE",
:oraver => ora90,
@@ -437,7 +437,7 @@
:precision => :skip,
:scale => 6,
:fsprecision => 6,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "TIMESTAMP(9) WITH TIME ZONE",
:oraver => ora90,
@@ -450,7 +450,7 @@
:precision => :skip,
:scale => 9,
:fsprecision => 9,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "TIMESTAMP WITH LOCAL TIME ZONE",
:oraver => ora90,
@@ -463,7 +463,7 @@
:precision => :skip,
:scale => 6,
:fsprecision => 6,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
DatatypeData.new(:data_type_string => "TIMESTAMP(9) WITH LOCAL TIME ZONE",
:oraver => ora90,
@@ -476,7 +476,7 @@
:precision => :skip,
:scale => 9,
:fsprecision => 9,
- :lfprecision => :skip,
+ :lfprecision => :skip
),
# Skip tsets for scale and fsprecision for INTERVAL YEAR TO MONTH
@@ -503,7 +503,7 @@
:precision => 2,
:scale => :skip,
:fsprecision => :skip,
- :lfprecision => 2,
+ :lfprecision => 2
),
DatatypeData.new(:data_type_string => "INTERVAL YEAR(4) TO MONTH",
:oraver => ora90,
@@ -516,7 +516,7 @@
:precision => 4,
:scale => :skip,
:fsprecision => :skip,
- :lfprecision => 4,
+ :lfprecision => 4
),
# Skip tests for precision and scale for INTERVAL DAY TO SECOND
# because their values depend on how they are described.
@@ -542,7 +542,7 @@
:precision => :skip,
:scale => :skip,
:fsprecision => 6,
- :lfprecision => 2,
+ :lfprecision => 2
),
DatatypeData.new(:data_type_string => "INTERVAL DAY(4) TO SECOND(9)",
:oraver => ora90,
@@ -555,7 +555,7 @@
:precision => :skip,
:scale => :skip,
:fsprecision => 9,
- :lfprecision => 4,
+ :lfprecision => 4
),
# Object Types
DatatypeData.new(:data_type_string => "MDSYS.SDO_GEOMETRY",
@@ -569,7 +569,7 @@
:precision => 0,
:scale => 0,
:fsprecision => 0,
- :lfprecision => 0,
+ :lfprecision => 0
),
=begin # uncomment after ref is supported.
DatatypeData.new(:data_type_string => "REF MDSYS.SDO_GEOMETRY",
More information about the ruby-oci8-commit
mailing list