ruby-oci8 1.0.6-x86-mswin32-60 → 1.0.7-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,26 @@
1
+ 2009-10-21 KUBO Takehiro <kubo@jiubao.org>
2
+ * NEWS: add changes between 1.0.6 and 1.0.7.
3
+ * VERSION: change version to 1.0.7.
4
+
5
+ 2009-10-04 KUBO Takehiro <kubo@jiubao.org>
6
+ * ext/oci8/oraconf.rb:
7
+ 1. Fix for ruby 1.8.5 with Oracle 8.x which needs some object
8
+ files to link with.
9
+ (reported by Jayson Cena)
10
+ 2. Add additional error message if under the sudo environemnt.
11
+ 3. Print not only error message but also the error backtrace when
12
+ oraconf.rb fails.
13
+
14
+ 2009-09-13 KUBO Takehiro <kubo@jiubao.org>
15
+ * ext/oci8/lob.c, ext/oci8/oci8.h, test/test_clob.rb: Change
16
+ OCI8::LOB#write to accept an object which is not a String and
17
+ doesn't respond to 'to_str' as IO#write does.
18
+ (requested by Christopher Jones)
19
+
20
+ 2009-09-12 KUBO Takehiro <kubo@jiubao.org>
21
+ * ext/oci8/oraconf.rb: Fixed to compile for AIX instant clients.
22
+ (reported by Kazuya Teramoto)
23
+
1
24
  2009-05-17 KUBO Takehiro <kubo@jiubao.org>
2
25
  * NEWS: add changes between 1.0.5 and 1.0.6.
3
26
  * VERSION: change version to 1.0.6.
data/NEWS CHANGED
@@ -1,3 +1,16 @@
1
+ 1.0.7:
2
+
3
+ * change OCI8::LOB#write to accept an object which is not a String and
4
+ doesn't respond to 'to_str' as IO#write does.
5
+ (requested by Christopher Jones)
6
+
7
+ * fix oraconf.rb for AIX instant clients.
8
+ (reported by Kazuya Teramoto)
9
+
10
+ * fix oraconf.rb for ruby 1.8.5 with Oracle 8.x which needs some object
11
+ files to link with.
12
+ (reported by Jayson Cena)
13
+
1
14
  1.0.6:
2
15
 
3
16
  * fix a problem when compiling for Oracle 8.0.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
data/ext/oci8/oci8lib.so CHANGED
Binary file
data/lib/oci8.rb CHANGED
@@ -55,7 +55,7 @@ class OCI8
55
55
  @@error_in_initialization = $!
56
56
  end
57
57
 
58
- VERSION = '1.0.6'
58
+ VERSION = '1.0.7'
59
59
  CLIENT_VERSION = '1020'
60
60
  # :stopdoc:
61
61
  RAW = OCI_TYPECODE_RAW
data/ruby-oci8.spec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Summary: ruby interface for Oracle using OCI8 API
5
5
  Name: ruby-oci8
6
- Version: 1.0.6
6
+ Version: 1.0.7
7
7
  Release: 1%{?dist}
8
8
  Group: Development/Libraries
9
9
  License: Ruby License
data/test/test_clob.rb CHANGED
@@ -64,6 +64,27 @@ class TestCLob < RUNIT::TestCase
64
64
  lob.free()
65
65
  end
66
66
 
67
+ def test_insert_symbol
68
+ filename = 'test_symbol'
69
+ value = :foo_bar
70
+ @stmt.prepare("DELETE FROM test_clob WHERE filename = :1")
71
+ @stmt.bindByPos(1, String, filename.size).set(filename)
72
+ @stmt.execute(@svc)
73
+
74
+ @stmt.prepare("INSERT INTO test_clob(filename, content) VALUES (:1, EMPTY_CLOB())")
75
+ @stmt.bindByPos(1, String, filename.size).set(filename)
76
+ @stmt.execute(@svc)
77
+
78
+ lob = @env.alloc(OCILobLocator)
79
+ @stmt.prepare("SELECT content FROM test_clob WHERE filename = :1 FOR UPDATE")
80
+ @stmt.bindByPos(1, String, filename.size).set(filename)
81
+ @stmt.defineByPos(1, OCI_TYPECODE_CLOB, lob)
82
+ @stmt.execute(@svc, 1)
83
+ lob.write(@svc, 1, value)
84
+ assert_equal(value.to_s, lob.read(@svc, 1, 30))
85
+ lob.free()
86
+ end
87
+
67
88
  def test_read
68
89
  filename = File.basename($lobfile)
69
90
  test_insert() # first insert data.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-oci8
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - KUBO Takehiro
@@ -9,7 +9,7 @@ autorequire: oci8
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-17 00:00:00 +09:00
12
+ date: 2009-10-21 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15