rdo-mysql 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/ext/rdo_mysql/macros.h +4 -14
- data/lib/rdo/mysql/version.rb +1 -1
- metadata +2 -2
data/.travis.yml
CHANGED
data/ext/rdo_mysql/macros.h
CHANGED
@@ -71,18 +71,6 @@
|
|
71
71
|
#define RDO_RESULT(tuples, info) \
|
72
72
|
(rb_funcall(rb_path2class("RDO::Result"), rb_intern("new"), 2, tuples, info))
|
73
73
|
|
74
|
-
/**
|
75
|
-
* Wrap the given StatementExecutor in a RDO::Statement.
|
76
|
-
*
|
77
|
-
* @param VALUE
|
78
|
-
* any object that responds to #command and #execute
|
79
|
-
*
|
80
|
-
* @return VALUE
|
81
|
-
* an RDO::Statement
|
82
|
-
*/
|
83
|
-
#define RDO_STATEMENT(executor) \
|
84
|
-
(rb_funcall(rb_path2class("RDO::Statement"), rb_intern("new"), 1, executor))
|
85
|
-
|
86
74
|
/**
|
87
75
|
* Convert a C string to a ruby String.
|
88
76
|
*
|
@@ -96,7 +84,8 @@
|
|
96
84
|
* a Ruby String
|
97
85
|
*/
|
98
86
|
#define RDO_STRING(s, len, enc) \
|
99
|
-
(rb_enc_associate_index(rb_str_new(s, len),
|
87
|
+
(rb_enc_associate_index(rb_str_new(s, len), \
|
88
|
+
enc > 0 ? enc : rb_enc_find_index("binary")))
|
100
89
|
|
101
90
|
/**
|
102
91
|
* Convert a C string to a ruby String, assuming possible NULL bytes.
|
@@ -110,7 +99,8 @@
|
|
110
99
|
* @return VALUE (String)
|
111
100
|
* a Ruby String
|
112
101
|
*/
|
113
|
-
#define RDO_BINARY_STRING(s, len)
|
102
|
+
#define RDO_BINARY_STRING(s, len) \
|
103
|
+
(RDO_STRING(s, len, rb_enc_find_index("binary")))
|
114
104
|
|
115
105
|
/**
|
116
106
|
* Convert a C string to a Fixnum.
|
data/lib/rdo/mysql/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdo-mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdo
|