do_oracle 0.10.12-x86-mingw32 → 0.10.13-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ChangeLog.markdown +5 -0
- data/README.markdown +5 -3
- data/ext/do_oracle/do_oracle.c +5 -5
- data/lib/do_oracle/1.8/do_oracle.so +0 -0
- data/lib/do_oracle/1.9/do_oracle.so +0 -0
- data/lib/do_oracle/2.0/do_oracle.so +0 -0
- data/lib/do_oracle/version.rb +1 -1
- data/tasks/compile.rake +1 -1
- data/tasks/release.rake +1 -1
- metadata +18 -37
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: 30f0284c762cfd11f7bb354c9487b356433985fd589d8e7f4741eccc0054e9cbff2a7922507265c6140eaac4c685207465378e0bb4d6f13d33ad90ffb998bb0e
|
4
|
+
metadata.gz: 0f8d6628cba2d56a16b80e14e1e28f0d5237b08ab030c5c35d8f3c5f9f8669f75d8a8fa15df821905bdfe7fc54a484fca11de47ffe0adba7aa7f9ee3371173de
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: 2709a0ecde9c308fd5e0e8ade6b1faf9790d0e1e
|
7
|
+
metadata.gz: 6cac866c9223f56a77c9117e9b6da384116f19f4
|
data/ChangeLog.markdown
CHANGED
data/README.markdown
CHANGED
@@ -14,9 +14,11 @@ This driver implements the DataObjects API for the Oracle relational database.
|
|
14
14
|
|
15
15
|
An example of usage:
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
```ruby
|
18
|
+
@connection = DataObjects::Connection.new("oracle://employees")
|
19
|
+
@reader = @connection.create_command('SELECT * FROM users').execute_reader
|
20
|
+
@reader.next!
|
21
|
+
```
|
20
22
|
|
21
23
|
## Requirements
|
22
24
|
|
data/ext/do_oracle/do_oracle.c
CHANGED
@@ -128,7 +128,7 @@ static void data_objects_debug(VALUE connection, VALUE string, struct timeval* s
|
|
128
128
|
}
|
129
129
|
|
130
130
|
|
131
|
-
static char * get_uri_option(VALUE query_hash, char
|
131
|
+
static char * get_uri_option(VALUE query_hash, const char* key) {
|
132
132
|
VALUE query_value;
|
133
133
|
char * value = NULL;
|
134
134
|
|
@@ -412,7 +412,7 @@ static VALUE cDO_OracleCommand_execute_try(cDO_OracleCommand_execute_try_t *arg)
|
|
412
412
|
int insert_id_present;
|
413
413
|
|
414
414
|
// no arguments given
|
415
|
-
if
|
415
|
+
if(NIL_P(arg->args)) {
|
416
416
|
result = rb_funcall(arg->cursor, DO_ID_EXEC, 0);
|
417
417
|
// arguments given - need to typecast
|
418
418
|
} else {
|
@@ -463,7 +463,7 @@ static VALUE cDO_OracleConnection_initialize(VALUE self, VALUE uri) {
|
|
463
463
|
|
464
464
|
char *host = "localhost", *port = "1521", *path = NULL;
|
465
465
|
char *connect_string;
|
466
|
-
|
466
|
+
long connect_string_length;
|
467
467
|
VALUE oci8_conn;
|
468
468
|
|
469
469
|
r_user = rb_funcall(uri, rb_intern("user"), 0);
|
@@ -555,7 +555,7 @@ static VALUE cDO_OracleCommand_execute_reader(int argc, VALUE *argv[], VALUE sel
|
|
555
555
|
VALUE column_metadata, column, column_name;
|
556
556
|
|
557
557
|
int i;
|
558
|
-
|
558
|
+
long field_count;
|
559
559
|
int infer_types = 0;
|
560
560
|
|
561
561
|
VALUE cursor = rb_funcall2(self, DO_ID_EXECUTE, argc, (VALUE *)argv);
|
@@ -587,7 +587,7 @@ static VALUE cDO_OracleCommand_execute_reader(int argc, VALUE *argv[], VALUE sel
|
|
587
587
|
// Whoops... wrong number of types passed to set_types. Close the reader and raise
|
588
588
|
// and error
|
589
589
|
rb_funcall(reader, DO_ID_CLOSE, 0);
|
590
|
-
rb_raise(eArgumentError, "Field-count mismatch. Expected %ld fields, but the query yielded %
|
590
|
+
rb_raise(eArgumentError, "Field-count mismatch. Expected %ld fields, but the query yielded %ld", RARRAY_LEN(field_types), field_count);
|
591
591
|
}
|
592
592
|
|
593
593
|
for ( i = 0; i < field_count; i++ ) {
|
Binary file
|
Binary file
|
Binary file
|
data/lib/do_oracle/version.rb
CHANGED
data/tasks/compile.rake
CHANGED
data/tasks/release.rake
CHANGED
metadata
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_oracle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 10
|
8
|
-
- 12
|
9
|
-
version: 0.10.12
|
4
|
+
version: 0.10.13
|
10
5
|
platform: x86-mingw32
|
11
6
|
authors:
|
12
7
|
- Raimonds Simanovskis
|
@@ -14,49 +9,38 @@ autorequire:
|
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
11
|
|
17
|
-
date: 2013-
|
18
|
-
default_executable:
|
12
|
+
date: 2013-05-27 00:00:00 Z
|
19
13
|
dependencies:
|
20
14
|
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
22
|
-
type: :runtime
|
23
|
-
name: data_objects
|
24
15
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
16
|
requirements:
|
26
17
|
- - "="
|
27
18
|
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
|
30
|
-
- 10
|
31
|
-
- 12
|
32
|
-
version: 0.10.12
|
19
|
+
version: 0.10.13
|
20
|
+
name: data_objects
|
33
21
|
requirement: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
22
|
prerelease: false
|
36
|
-
type: :
|
37
|
-
|
23
|
+
type: :runtime
|
24
|
+
- !ruby/object:Gem::Dependency
|
38
25
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
26
|
requirements:
|
40
27
|
- - ~>
|
41
28
|
- !ruby/object:Gem::Version
|
42
|
-
segments:
|
43
|
-
- 2
|
44
|
-
- 5
|
45
29
|
version: "2.5"
|
30
|
+
name: rspec
|
46
31
|
requirement: *id002
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
32
|
prerelease: false
|
49
33
|
type: :development
|
50
|
-
|
34
|
+
- !ruby/object:Gem::Dependency
|
51
35
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
36
|
requirements:
|
53
37
|
- - ~>
|
54
38
|
- !ruby/object:Gem::Version
|
55
|
-
segments:
|
56
|
-
- 0
|
57
|
-
- 7
|
58
39
|
version: "0.7"
|
40
|
+
name: rake-compiler
|
59
41
|
requirement: *id003
|
42
|
+
prerelease: false
|
43
|
+
type: :development
|
60
44
|
description: Implements the DataObjects API for Oracle
|
61
45
|
email: raimonds.simanovskis@gmail.com
|
62
46
|
executables: []
|
@@ -105,10 +89,12 @@ files:
|
|
105
89
|
- tasks/spec.rake
|
106
90
|
- lib/do_oracle/1.8/do_oracle.so
|
107
91
|
- lib/do_oracle/1.9/do_oracle.so
|
108
|
-
|
92
|
+
- lib/do_oracle/2.0/do_oracle.so
|
109
93
|
homepage:
|
110
94
|
licenses: []
|
111
95
|
|
96
|
+
metadata: {}
|
97
|
+
|
112
98
|
post_install_message:
|
113
99
|
rdoc_options: []
|
114
100
|
|
@@ -116,22 +102,17 @@ require_paths:
|
|
116
102
|
- lib
|
117
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
118
104
|
requirements:
|
119
|
-
-
|
105
|
+
- &id004
|
106
|
+
- ">="
|
120
107
|
- !ruby/object:Gem::Version
|
121
|
-
segments:
|
122
|
-
- 0
|
123
108
|
version: "0"
|
124
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
110
|
requirements:
|
126
|
-
-
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
segments:
|
129
|
-
- 0
|
130
|
-
version: "0"
|
111
|
+
- *id004
|
131
112
|
requirements: []
|
132
113
|
|
133
114
|
rubyforge_project: dorb
|
134
|
-
rubygems_version:
|
115
|
+
rubygems_version: 2.0.3
|
135
116
|
signing_key:
|
136
117
|
specification_version: 3
|
137
118
|
summary: DataObjects Oracle Driver
|