do_postgres 0.10.16-x86-mswin32-60 → 0.10.17-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.markdown +5 -0
- data/ext/do_postgres/do_common.c +3 -0
- data/ext/do_postgres/do_postgres.c +8 -2
- data/lib/do_postgres/1.8/do_postgres.so +0 -0
- data/lib/do_postgres/1.9/do_postgres.so +0 -0
- data/lib/do_postgres/2.0/do_postgres.so +0 -0
- data/lib/do_postgres/2.1/do_postgres.so +0 -0
- data/lib/do_postgres/2.2/do_postgres.so +0 -0
- data/lib/do_postgres/2.3/do_postgres.so +0 -0
- data/lib/do_postgres/version.rb +1 -1
- data/tasks/compile.rake +1 -1
- data/tasks/release.rake +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 188bc820ba0467ca7557ae7511bcbfd0bdfd45f5
|
4
|
+
data.tar.gz: 2ec3cb4646366e7f3f2b2d17e6a03c0c33798606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27e5d086085c41e3f8b4a4e10accf8a5f113ca13d21c10170c69a7d14514dac31d35b06f4ab33b7829d621ba3f98f71ea071603912cd879a465fb77df668c647
|
7
|
+
data.tar.gz: d1188b5ac2f27aaec1c820b44c2095715616f762e8c6ac15bc098a93a3519d1aa7b3771f8a106f82a2e16b0c2d3f7eda24b4ecaa04e25c575a504bc3984c6ae0
|
data/ChangeLog.markdown
CHANGED
data/ext/do_postgres/do_common.c
CHANGED
@@ -49,6 +49,9 @@
|
|
49
49
|
#include <math.h>
|
50
50
|
#include <ctype.h>
|
51
51
|
#include <time.h>
|
52
|
+
#ifndef _WIN32
|
53
|
+
#include <sys/time.h>
|
54
|
+
#endif
|
52
55
|
#include "error.h"
|
53
56
|
#include "compat.h"
|
54
57
|
|
@@ -283,13 +286,14 @@ PGresult * do_postgres_cCommand_execute_async(VALUE self, VALUE connection, PGco
|
|
283
286
|
|
284
287
|
int socket_fd = PQsocket(db);
|
285
288
|
rb_fdset_t rset;
|
289
|
+
rb_fd_init(&rset);
|
290
|
+
rb_fd_set(socket_fd, &rset);
|
286
291
|
|
287
292
|
while (1) {
|
288
|
-
rb_fd_init(&rset);
|
289
|
-
rb_fd_set(socket_fd, &rset);
|
290
293
|
retval = rb_thread_fd_select(socket_fd + 1, &rset, NULL, NULL, NULL);
|
291
294
|
|
292
295
|
if (retval < 0) {
|
296
|
+
rb_fd_term(&rset);
|
293
297
|
rb_sys_fail(0);
|
294
298
|
}
|
295
299
|
|
@@ -298,6 +302,7 @@ PGresult * do_postgres_cCommand_execute_async(VALUE self, VALUE connection, PGco
|
|
298
302
|
}
|
299
303
|
|
300
304
|
if (PQconsumeInput(db) == 0) {
|
305
|
+
rb_fd_term(&rset);
|
301
306
|
rb_raise(eDO_ConnectionError, "%s", PQerrorMessage(db));
|
302
307
|
}
|
303
308
|
|
@@ -306,6 +311,7 @@ PGresult * do_postgres_cCommand_execute_async(VALUE self, VALUE connection, PGco
|
|
306
311
|
}
|
307
312
|
}
|
308
313
|
|
314
|
+
rb_fd_term(&rset);
|
309
315
|
data_objects_debug(connection, query, &start);
|
310
316
|
return PQgetResult(db);
|
311
317
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/do_postgres/version.rb
CHANGED
data/tasks/compile.rake
CHANGED
@@ -70,7 +70,7 @@ begin
|
|
70
70
|
ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar'
|
71
71
|
ext.java_compiling do |gem|
|
72
72
|
gem.add_dependency 'jdbc-postgres', '>=8.2'
|
73
|
-
gem.add_dependency 'do_jdbc', '0.10.
|
73
|
+
gem.add_dependency 'do_jdbc', '0.10.17'
|
74
74
|
end
|
75
75
|
end
|
76
76
|
rescue LoadError
|
data/tasks/release.rake
CHANGED
@@ -3,7 +3,7 @@ task :build_all do
|
|
3
3
|
`rake clean`
|
4
4
|
`rake build`
|
5
5
|
`rake java gem`
|
6
|
-
`rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0:2.1.
|
6
|
+
`rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0:2.1.8:2.2.4:2.3.0`
|
7
7
|
end
|
8
8
|
|
9
9
|
desc 'Release all gems (native, binaries for JRuby and Windows)'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.17
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- Dirkjan Bussink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: data_objects
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.17
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.10.
|
26
|
+
version: 0.10.17
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,6 +106,7 @@ files:
|
|
106
106
|
- lib/do_postgres/2.0/do_postgres.so
|
107
107
|
- lib/do_postgres/2.1/do_postgres.so
|
108
108
|
- lib/do_postgres/2.2/do_postgres.so
|
109
|
+
- lib/do_postgres/2.3/do_postgres.so
|
109
110
|
homepage:
|
110
111
|
licenses: []
|
111
112
|
metadata: {}
|