cubrid 10.1.0 → 10.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/README.rdoc +12 -12
- data/ext/stmt.c +19 -19
- metadata +29 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a9030c6369d1b93d74df4d64544939edeb198afbd4898b8e2bbe8dcfa561a27a
|
4
|
+
data.tar.gz: 2319d6bbcb0108df0052d4a0e34e0143a3f8828aa620fc97b2a8e6c2b870f738
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f8ef93e548fec6eb912d694f4f920d4600fe45edd5df8b2fcdd3e1183a3bcdf34768285a16ac281c75893adb9736c66d8ed8b395b26c58b65cbd3744bba5549f
|
7
|
+
data.tar.gz: 5bee714e084e1a9fa931934705fa50a9ea1a5ea3405508d05ca4af780d46b8dfeaab9a2d995f8dfb2a9273f686edacee35d7ec3bf145c23c68fb5d9e20c09c99
|
data/README.rdoc
CHANGED
@@ -2,31 +2,31 @@
|
|
2
2
|
|
3
3
|
== Description
|
4
4
|
|
5
|
-
This is a Ruby Driver and ActiveRecord Adapter for CUBRID Database.
|
5
|
+
This is a Ruby Driver and ActiveRecord Adapter for CUBRID Database.
|
6
|
+
The latest version of CUBRID Ruby driver can be found at:
|
7
|
+
|
8
|
+
http://ftp.cubrid.org/CUBRID_Drivers/Ruby_Driver/
|
9
|
+
|
6
10
|
|
7
11
|
== Installation
|
8
12
|
|
9
13
|
1. cd ext/
|
10
14
|
2. ruby extconf.rb
|
11
|
-
3. make install
|
15
|
+
3. make install
|
12
16
|
|
13
17
|
=== Gem Installation
|
14
18
|
|
15
19
|
Windows:
|
16
|
-
|
20
|
+
> gem install cubrid
|
17
21
|
|
18
22
|
Linux:
|
19
|
-
|
20
|
-
|
21
|
-
== Features/Problems
|
22
|
-
|
23
|
-
* Cross-platform.
|
24
|
-
|
25
|
-
* Compatible with CUBRID 10.1.0.
|
23
|
+
$ sudo -E gem install cubrid
|
26
24
|
|
27
|
-
|
25
|
+
== Features/Dependencies
|
28
26
|
|
29
|
-
*
|
27
|
+
* Cross-platform
|
28
|
+
* Compatible with CUBRID 10.2.0.
|
29
|
+
* Compatible with Ruby 1.9 or higher
|
30
30
|
|
31
31
|
== Synopsis
|
32
32
|
|
data/ext/stmt.c
CHANGED
@@ -99,7 +99,7 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
|
|
99
99
|
void *val = NULL;
|
100
100
|
int *ind;
|
101
101
|
|
102
|
-
arr_size =
|
102
|
+
arr_size = RARRAY_LEN (data);
|
103
103
|
ind = ALLOCA_N(int, arr_size);
|
104
104
|
if (ind == NULL) {
|
105
105
|
rb_raise(rb_eNoMemError, "Not enough memory");
|
@@ -174,8 +174,8 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
|
|
174
174
|
ind[i] = 1;
|
175
175
|
}
|
176
176
|
else {
|
177
|
-
bit_ary[i].size =
|
178
|
-
bit_ary[i].buf =
|
177
|
+
bit_ary[i].size = RSTRING_LEN (rb_ary_entry(data, i));
|
178
|
+
bit_ary[i].buf = RSTRING_PTR (rb_ary_entry(data, i));
|
179
179
|
ind[i] = 0;
|
180
180
|
}
|
181
181
|
}
|
@@ -195,7 +195,7 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
|
|
195
195
|
ind[i] = 1;
|
196
196
|
}
|
197
197
|
else {
|
198
|
-
str_ary[i] =
|
198
|
+
str_ary[i] = RSTRING_PTR (rb_ary_entry(data, i));
|
199
199
|
ind[i] = 0;
|
200
200
|
}
|
201
201
|
}
|
@@ -224,12 +224,12 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
|
|
224
224
|
}
|
225
225
|
else {
|
226
226
|
a = rb_funcall(rb_ary_entry(data, i), rb_intern("to_a"), 0);
|
227
|
-
date_ary[i].ss = FIX2INT(
|
228
|
-
date_ary[i].mm = FIX2INT(
|
229
|
-
date_ary[i].hh = FIX2INT(
|
230
|
-
date_ary[i].day = FIX2INT(
|
231
|
-
date_ary[i].mon = FIX2INT(
|
232
|
-
date_ary[i].yr = FIX2INT(
|
227
|
+
date_ary[i].ss = FIX2INT(RARRAY_AREF (a, 0));
|
228
|
+
date_ary[i].mm = FIX2INT(RARRAY_AREF (a, 1));
|
229
|
+
date_ary[i].hh = FIX2INT(RARRAY_AREF (a, 2));
|
230
|
+
date_ary[i].day = FIX2INT(RARRAY_AREF (a, 3));
|
231
|
+
date_ary[i].mon = FIX2INT(RARRAY_AREF (a, 4));
|
232
|
+
date_ary[i].yr = FIX2INT(RARRAY_AREF (a, 5));
|
233
233
|
|
234
234
|
ind[i] = 0;
|
235
235
|
}
|
@@ -318,13 +318,13 @@ cubrid_stmt_bind_internal(Statement *stmt, int index, VALUE data, int u_type, in
|
|
318
318
|
break;
|
319
319
|
|
320
320
|
case T_STRING:
|
321
|
-
str_val =
|
321
|
+
str_val = RSTRING_PTR (data);
|
322
322
|
a_type = CCI_A_TYPE_STR;
|
323
323
|
val = str_val;
|
324
324
|
if (u_type == CCI_U_TYPE_UNKNOWN) {
|
325
325
|
u_type = CCI_U_TYPE_STRING;
|
326
326
|
} else if (u_type == CCI_U_TYPE_BIT || u_type == CCI_U_TYPE_VARBIT) {
|
327
|
-
bit.size =
|
327
|
+
bit.size = RSTRING_LEN(data);
|
328
328
|
bit.buf = str_val;
|
329
329
|
a_type = CCI_A_TYPE_BIT;
|
330
330
|
val = &bit;
|
@@ -336,12 +336,12 @@ cubrid_stmt_bind_internal(Statement *stmt, int index, VALUE data, int u_type, in
|
|
336
336
|
VALUE a;
|
337
337
|
|
338
338
|
a = rb_funcall(data, rb_intern("to_a"), 0);
|
339
|
-
date.ss = FIX2INT(
|
340
|
-
date.mm = FIX2INT(
|
341
|
-
date.hh = FIX2INT(
|
342
|
-
date.day = FIX2INT(
|
343
|
-
date.mon = FIX2INT(
|
344
|
-
date.yr = FIX2INT(
|
339
|
+
date.ss = FIX2INT(RARRAY_AREF (a, 0));
|
340
|
+
date.mm = FIX2INT(RARRAY_AREF (a, 1));
|
341
|
+
date.hh = FIX2INT(RARRAY_AREF (a, 2));
|
342
|
+
date.day = FIX2INT(RARRAY_AREF (a, 3));
|
343
|
+
date.mon = FIX2INT(RARRAY_AREF (a, 4));
|
344
|
+
date.yr = FIX2INT(RARRAY_AREF (a, 5));
|
345
345
|
|
346
346
|
a_type = CCI_A_TYPE_DATE;
|
347
347
|
val = &date;
|
@@ -890,7 +890,7 @@ cubrid_stmt_fetch_hash(VALUE self)
|
|
890
890
|
|
891
891
|
hash = rb_hash_new();
|
892
892
|
for(i = 0; i < stmt->col_count; i++) {
|
893
|
-
col =
|
893
|
+
col = RARRAY_AREF(row, i);
|
894
894
|
strcpy(colName, CCI_GET_RESULT_INFO_NAME(stmt->col_info, i+1));
|
895
895
|
rb_hash_aset(hash, rb_str_new2(colName), col);
|
896
896
|
}
|
metadata
CHANGED
@@ -1,63 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cubrid
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 10.2.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- NHN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
date: 2017-07-25 00:00:00 Z
|
11
|
+
date: 2020-12-17 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
|
15
13
|
description: This extension is a Ruby connector for CUBRID Database.
|
16
14
|
email: cubrid_ruby@nhncorp.com
|
17
15
|
executables: []
|
18
|
-
|
19
|
-
extensions:
|
16
|
+
extensions:
|
20
17
|
- ext/extconf.rb
|
21
|
-
extra_rdoc_files:
|
18
|
+
extra_rdoc_files:
|
22
19
|
- README.rdoc
|
23
|
-
files:
|
20
|
+
files:
|
24
21
|
- README.rdoc
|
25
|
-
- ext/
|
22
|
+
- ext/conn.c
|
26
23
|
- ext/cubrid.c
|
27
24
|
- ext/cubrid.h
|
28
|
-
- ext/conn.c
|
29
|
-
- ext/stmt.c
|
30
25
|
- ext/error.c
|
26
|
+
- ext/extconf.rb
|
27
|
+
- ext/stmt.c
|
31
28
|
homepage: http://www.cubrid.org/cubrid_ruby_programming
|
32
|
-
licenses:
|
33
|
-
|
29
|
+
licenses:
|
30
|
+
- GPL-2.0
|
34
31
|
metadata: {}
|
35
|
-
|
36
32
|
post_install_message:
|
37
|
-
rdoc_options:
|
38
|
-
- --title
|
33
|
+
rdoc_options:
|
34
|
+
- "--title"
|
39
35
|
- cubrid-ruby documentation
|
40
|
-
- --line-numbers
|
41
|
-
- --main
|
36
|
+
- "--line-numbers"
|
37
|
+
- "--main"
|
42
38
|
- README
|
43
|
-
require_paths:
|
44
|
-
- .
|
45
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 1.
|
50
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
39
|
+
require_paths:
|
40
|
+
- "."
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.9'
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
52
48
|
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version:
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
55
51
|
requirements: []
|
56
|
-
|
57
|
-
rubyforge_project: cubrid
|
58
|
-
rubygems_version: 2.0.17
|
52
|
+
rubygems_version: 3.0.6
|
59
53
|
signing_key:
|
60
54
|
specification_version: 4
|
61
55
|
summary: CUBRID Database API Module for Ruby
|
62
56
|
test_files: []
|
63
|
-
|