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 +23 -0
- data/NEWS +13 -0
- data/VERSION +1 -1
- data/ext/oci8/oci8lib.so +0 -0
- data/lib/oci8.rb +1 -1
- data/ruby-oci8.spec +1 -1
- data/test/test_clob.rb +21 -0
- metadata +2 -2
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.
|
1
|
+
1.0.7
|
data/ext/oci8/oci8lib.so
CHANGED
Binary file
|
data/lib/oci8.rb
CHANGED
data/ruby-oci8.spec
CHANGED
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.
|
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-
|
12
|
+
date: 2009-10-21 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|