do_postgres 0.10.13-java → 0.10.14-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/ChangeLog.markdown +5 -0
- data/ext/do_postgres/do_common.c +1 -1
- data/ext/do_postgres/do_postgres.c +8 -0
- data/lib/do_postgres/do_postgres.jar +0 -0
- data/lib/do_postgres/version.rb +1 -1
- data/tasks/compile.rake +1 -1
- metadata +82 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3e713c4f8e64d9e78ad27b85869182bbfd0cac21
|
4
|
+
data.tar.gz: 58716b50b16155c2dc9ec2e9dc4cc28768c3a195
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6737cb3c8eb9d178f37b5dcc52acd3b3ba973d74085800cb72489cae87146c8aaa2490d4a0ac53349f554f18129b85665f412e79fc6d9352787cb9ef1153de96
|
7
|
+
data.tar.gz: 05220beac6495307a7972ace61450f8ca43489825d1d1256a0b34a317a726a39abfe32bd8881af62d9042261fc47d128700b9dc829c8cae90987ebfa1abf9093
|
data/ChangeLog.markdown
CHANGED
data/ext/do_postgres/do_common.c
CHANGED
@@ -193,7 +193,7 @@ VALUE data_objects_parse_date(const char *date) {
|
|
193
193
|
}
|
194
194
|
|
195
195
|
VALUE data_objects_parse_time(const char *date) {
|
196
|
-
static char const* const _fmt_datetime = "%4d-%2d-%2d
|
196
|
+
static char const* const _fmt_datetime = "%4d-%2d-%2d%*c%2d:%2d:%2d%7lf";
|
197
197
|
int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0, usec = 0;
|
198
198
|
double subsec = 0;
|
199
199
|
|
@@ -440,6 +440,7 @@ void do_postgres_full_connect(VALUE self, PGconn *db) {
|
|
440
440
|
const char *backslash_off = "SET backslash_quote = off";
|
441
441
|
const char *standard_strings_on = "SET standard_conforming_strings = on";
|
442
442
|
const char *warning_messages = "SET client_min_messages = warning";
|
443
|
+
const char *date_format = "SET datestyle = ISO";
|
443
444
|
VALUE r_options;
|
444
445
|
|
445
446
|
r_options = rb_str_new2(backslash_off);
|
@@ -463,6 +464,13 @@ void do_postgres_full_connect(VALUE self, PGconn *db) {
|
|
463
464
|
rb_warn("%s", PQresultErrorMessage(result));
|
464
465
|
}
|
465
466
|
|
467
|
+
r_options = rb_str_new2(date_format);
|
468
|
+
result = do_postgres_cCommand_execute(Qnil, self, db, r_options);
|
469
|
+
|
470
|
+
if (PQresultStatus(result) != PGRES_COMMAND_OK) {
|
471
|
+
rb_warn("%s", PQresultErrorMessage(result));
|
472
|
+
}
|
473
|
+
|
466
474
|
VALUE encoding = rb_iv_get(self, "@encoding");
|
467
475
|
#ifdef HAVE_PQSETCLIENTENCODING
|
468
476
|
VALUE pg_encoding = rb_hash_aref(data_objects_const_get(mDO_PostgresEncoding, "MAP"), encoding);
|
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.14'
|
74
74
|
end
|
75
75
|
end
|
76
76
|
rescue LoadError
|
metadata
CHANGED
@@ -1,77 +1,94 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_postgres
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.10.14
|
5
5
|
platform: java
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Dirkjan Bussink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.13
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
20
14
|
name: data_objects
|
21
|
-
requirement:
|
22
|
-
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.10.14
|
23
20
|
type: :runtime
|
24
|
-
- !ruby/object:Gem::Dependency
|
25
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: "2.5"
|
30
|
-
name: rspec
|
31
|
-
requirement: *id002
|
32
21
|
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.10.14
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.5'
|
33
34
|
type: :development
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ~>
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: "0.7"
|
40
|
-
name: rake-compiler
|
41
|
-
requirement: *id003
|
42
35
|
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake-compiler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.7'
|
43
48
|
type: :development
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: "8.2"
|
50
|
-
name: jdbc-postgres
|
51
|
-
requirement: *id004
|
52
49
|
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jdbc-postgres
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '8.2'
|
53
62
|
type: :runtime
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - "="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 0.10.13
|
60
|
-
name: do_jdbc
|
61
|
-
requirement: *id005
|
62
63
|
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '8.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: do_jdbc
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.10.14
|
63
76
|
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.10.14
|
64
83
|
description: Implements the DataObjects API for PostgreSQL
|
65
84
|
email: d.bussink@gmail.com
|
66
85
|
executables: []
|
67
|
-
|
68
86
|
extensions: []
|
69
|
-
|
70
|
-
extra_rdoc_files:
|
87
|
+
extra_rdoc_files:
|
71
88
|
- ChangeLog.markdown
|
72
89
|
- LICENSE
|
73
90
|
- README.markdown
|
74
|
-
files:
|
91
|
+
files:
|
75
92
|
- ChangeLog.markdown
|
76
93
|
- LICENSE
|
77
94
|
- README.markdown
|
@@ -84,6 +101,7 @@ files:
|
|
84
101
|
- ext/do_postgres/extconf.rb
|
85
102
|
- ext/do_postgres/pg_config.h
|
86
103
|
- lib/do_postgres.rb
|
104
|
+
- lib/do_postgres/do_postgres.jar
|
87
105
|
- lib/do_postgres/encoding.rb
|
88
106
|
- lib/do_postgres/transaction.rb
|
89
107
|
- lib/do_postgres/version.rb
|
@@ -112,34 +130,30 @@ files:
|
|
112
130
|
- tasks/release.rake
|
113
131
|
- tasks/retrieve.rake
|
114
132
|
- tasks/spec.rake
|
115
|
-
- lib/do_postgres/do_postgres.jar
|
116
133
|
homepage:
|
117
134
|
licenses: []
|
118
|
-
|
119
135
|
metadata: {}
|
120
|
-
|
121
136
|
post_install_message:
|
122
137
|
rdoc_options: []
|
123
|
-
|
124
|
-
require_paths:
|
138
|
+
require_paths:
|
125
139
|
- lib
|
126
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
-
|
129
|
-
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
135
150
|
requirements: []
|
136
|
-
|
137
151
|
rubyforge_project: dorb
|
138
|
-
rubygems_version: 2.0.
|
152
|
+
rubygems_version: 2.2.0.preview.1
|
139
153
|
signing_key:
|
140
154
|
specification_version: 3
|
141
155
|
summary: DataObjects PostgreSQL Driver
|
142
|
-
test_files:
|
156
|
+
test_files:
|
143
157
|
- spec/command_spec.rb
|
144
158
|
- spec/connection_spec.rb
|
145
159
|
- spec/encoding_spec.rb
|