do_mysql 0.10.12-x86-mswin32-60 → 0.10.13-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ChangeLog.markdown +4 -0
- data/README.markdown +10 -8
- data/ext/do_mysql/do_mysql.c +3 -4
- data/lib/do_mysql/1.8/do_mysql.so +0 -0
- data/lib/do_mysql/1.9/do_mysql.so +0 -0
- data/lib/do_mysql/2.0/do_mysql.so +0 -0
- data/lib/do_mysql/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
|
+
SHA1:
|
3
|
+
metadata.gz: 77d537f240aec1efc33cc8935a88ecc26ad6045b
|
4
|
+
data.tar.gz: 8497acc4ad643a90048e39b0b6501ba14ff139f6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 807cdd4e213526b7fa50849d643e0f92c22fe355a1f8035c76ffd051f8b0f577f133e21dbaa76bd030216897299511a76a25e44215ee623fa036d131e14a0f2b
|
7
|
+
data.tar.gz: ead4822d68f1074d88535123282e1885c2e01f18169859b7bdc1f9cc5956d521d025a98eac74484fa632042a7c06762b3405f5438d96f467fd638cc565ad5410
|
data/ChangeLog.markdown
CHANGED
data/README.markdown
CHANGED
@@ -14,14 +14,16 @@ This driver implements the DataObjects API for the MySQL relational database.
|
|
14
14
|
|
15
15
|
An example of usage:
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
17
|
+
```ruby
|
18
|
+
# default user (root, no password); default port (3306)
|
19
|
+
DataObjects::Connection.new("mysql://host/database")
|
20
|
+
# specified user, specified port
|
21
|
+
DataObjects::Connection.new("mysql://user:pass@host:8888/database")
|
22
|
+
|
23
|
+
@connection = DataObjects::Connection.new("mysql://localhost/employees")
|
24
|
+
@reader = @connection.create_command('SELECT * FROM users').execute_reader
|
25
|
+
@reader.next!
|
26
|
+
```
|
25
27
|
|
26
28
|
## Requirements
|
27
29
|
|
data/ext/do_mysql/do_mysql.c
CHANGED
@@ -504,10 +504,6 @@ VALUE do_mysql_cCommand_execute_reader(int argc, VALUE *argv, VALUE self) {
|
|
504
504
|
MYSQL *db = DATA_PTR(mysql_connection);
|
505
505
|
MYSQL_RES *response = do_mysql_cCommand_execute(self, connection, db, query);
|
506
506
|
|
507
|
-
if (!response) {
|
508
|
-
rb_raise(eDO_ConnectionError, "No result set received for a query that should yield one.");
|
509
|
-
}
|
510
|
-
|
511
507
|
unsigned int field_count = mysql_field_count(db);
|
512
508
|
VALUE reader = rb_funcall(cDO_MysqlReader, DO_ID_NEW, 0);
|
513
509
|
|
@@ -587,6 +583,9 @@ VALUE do_mysql_cReader_next(VALUE self) {
|
|
587
583
|
}
|
588
584
|
|
589
585
|
MYSQL_RES *reader = DATA_PTR(reader_container);
|
586
|
+
if(!reader) {
|
587
|
+
return Qfalse;
|
588
|
+
}
|
590
589
|
MYSQL_ROW result = mysql_fetch_row(reader);
|
591
590
|
|
592
591
|
// The Meat
|
Binary file
|
Binary file
|
Binary file
|
data/lib/do_mysql/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_mysql
|
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-mswin32-60
|
11
6
|
authors:
|
12
7
|
- Dirkjan Bussink
|
@@ -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 MySQL
|
61
45
|
email: d.bussink@gmail.com
|
62
46
|
executables: []
|
@@ -111,10 +95,12 @@ files:
|
|
111
95
|
- tasks/ssl.rake
|
112
96
|
- lib/do_mysql/1.8/do_mysql.so
|
113
97
|
- lib/do_mysql/1.9/do_mysql.so
|
114
|
-
|
98
|
+
- lib/do_mysql/2.0/do_mysql.so
|
115
99
|
homepage:
|
116
100
|
licenses: []
|
117
101
|
|
102
|
+
metadata: {}
|
103
|
+
|
118
104
|
post_install_message: |+
|
119
105
|
|
120
106
|
======================================================================================================
|
@@ -139,22 +125,17 @@ require_paths:
|
|
139
125
|
- lib
|
140
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
127
|
requirements:
|
142
|
-
-
|
128
|
+
- &id004
|
129
|
+
- ">="
|
143
130
|
- !ruby/object:Gem::Version
|
144
|
-
segments:
|
145
|
-
- 0
|
146
131
|
version: "0"
|
147
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
133
|
requirements:
|
149
|
-
-
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
segments:
|
152
|
-
- 0
|
153
|
-
version: "0"
|
134
|
+
- *id004
|
154
135
|
requirements: []
|
155
136
|
|
156
137
|
rubyforge_project: dorb
|
157
|
-
rubygems_version:
|
138
|
+
rubygems_version: 2.0.3
|
158
139
|
signing_key:
|
159
140
|
specification_version: 3
|
160
141
|
summary: DataObjects MySQL Driver
|