pg 0.18.0.pre20141017160319-x86-mingw32 → 0.18.0.pre20141117110243-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +317 -235
- data/History.rdoc +15 -0
- data/Manifest.txt +2 -0
- data/README.rdoc +1 -1
- data/ext/extconf.rb +2 -0
- data/ext/pg.c +66 -0
- data/ext/pg.h +50 -13
- data/ext/pg_binary_decoder.c +3 -3
- data/ext/pg_coder.c +6 -0
- data/ext/pg_connection.c +49 -54
- data/ext/pg_copy_coder.c +13 -29
- data/ext/pg_errors.c +6 -0
- data/ext/pg_result.c +272 -76
- data/ext/pg_text_encoder.c +43 -0
- data/ext/pg_type_map.c +84 -13
- data/ext/pg_type_map_all_strings.c +15 -12
- data/ext/pg_type_map_by_class.c +239 -0
- data/ext/pg_type_map_by_column.c +80 -22
- data/ext/pg_type_map_by_mri_type.c +41 -23
- data/ext/pg_type_map_by_oid.c +51 -19
- data/lib/1.9/pg_ext.so +0 -0
- data/lib/2.0/pg_ext.so +0 -0
- data/lib/2.1/pg_ext.so +0 -0
- data/lib/i386-mingw32/libpq.dll +0 -0
- data/lib/pg.rb +2 -2
- data/lib/pg/basic_type_mapping.rb +13 -13
- data/lib/pg/coder.rb +9 -0
- data/spec/helpers.rb +5 -3
- data/spec/pg/basic_type_mapping_spec.rb +1 -1
- data/spec/pg/connection_spec.rb +16 -5
- data/spec/pg/result_spec.rb +77 -3
- data/spec/pg/type_map_by_class_spec.rb +138 -0
- data/spec/pg/type_map_by_column_spec.rb +87 -0
- data/spec/pg/type_map_by_mri_type_spec.rb +14 -0
- data/spec/pg/type_map_by_oid_spec.rb +21 -0
- data/spec/pg/type_spec.rb +27 -7
- data/spec/pg_spec.rb +14 -0
- metadata +24 -21
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fba31563c729fe4e27f008cd6d91aec06497bb90
|
4
|
+
data.tar.gz: 3414b0a668b9279751223ae28c368bee657809fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c62f357e5787e7a143fd656b87f4b2e3d26117ef50bbf66c71e7e769029f6509bf866685779d911559e409cddc521fac4033f38ad799573bd91594804515a192
|
7
|
+
data.tar.gz: 696cc8d2cdf9d39df1be81a99b5e5d482926ecf8e0fa0ff2d58d70121b49efc6753dd3d5b1e654e8135150226ff872b6ea42b71c6128f8d5ecc5ecc4e809b524
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/ChangeLog
CHANGED
@@ -1,8 +1,206 @@
|
|
1
|
+
2014-11-10 Lars Kanis <lars@greiz-reinsdorf.de>
|
2
|
+
|
3
|
+
* ext/pg_type_map_by_class.c:
|
4
|
+
Fix typo.
|
5
|
+
[eeb8a82c5328] [tip]
|
6
|
+
|
7
|
+
* spec/pg/type_map_by_class_spec.rb:
|
8
|
+
TypeMapByClass: Add test for invlid coder object.
|
9
|
+
[64ae7cff7f40]
|
10
|
+
|
11
|
+
* ext/pg_type_map_by_class.c:
|
12
|
+
Better check than believe the value type returned by #ancestors .
|
13
|
+
[961a1fce08fd]
|
14
|
+
|
15
|
+
2014-11-08 Lars Kanis <lars@greiz-reinsdorf.de>
|
16
|
+
|
17
|
+
* ext/pg_binary_decoder.c, ext/pg_type_map_all_strings.c:
|
18
|
+
Tweak the type cast documentation a bit more. [skip ci]
|
19
|
+
[185638b52684]
|
20
|
+
|
21
|
+
* ext/pg_type_map_by_class.c, spec/pg/type_map_by_class_spec.rb:
|
22
|
+
TypeMapByClass: Forgot to expire the cache on changes.
|
23
|
+
[1ce48a854d11]
|
24
|
+
|
25
|
+
2014-11-07 Lars Kanis <lars@greiz-reinsdorf.de>
|
26
|
+
|
27
|
+
* Manifest.txt, ext/pg.c, ext/pg.h, ext/pg_type_map_by_class.c,
|
28
|
+
ext/pg_type_map_by_mri_type.c, lib/pg/basic_type_mapping.rb,
|
29
|
+
spec/pg/connection_spec.rb, spec/pg/type_map_by_class_spec.rb,
|
30
|
+
spec/pg/type_map_by_column_spec.rb, spec/pg/type_spec.rb:
|
31
|
+
Add PG::TypeMapByClass. This replaces PG::TypeMapByMriType with a
|
32
|
+
more portable and flexible way to encode values.
|
33
|
+
[27987dbd0b32]
|
34
|
+
|
35
|
+
2014-11-06 Lars Kanis <lars@greiz-reinsdorf.de>
|
36
|
+
|
37
|
+
* ext/pg_connection.c, ext/pg_result.c:
|
38
|
+
Add note about function usage by the sequel_pg gem.
|
39
|
+
[989a6bd6bf0d]
|
40
|
+
|
41
|
+
2014-11-03 Lars Kanis <lars@greiz-reinsdorf.de>
|
42
|
+
|
43
|
+
* ext/pg_result.c:
|
44
|
+
Fix possible segfault, when the GC runs within the loop of
|
45
|
+
pgresult_init_fnames().
|
46
|
+
[017bc722655b]
|
47
|
+
|
48
|
+
2014-11-01 Lars Kanis <lars@greiz-reinsdorf.de>
|
49
|
+
|
50
|
+
* ext/pg.h, ext/pg_coder.c, lib/pg/coder.rb, spec/pg/type_spec.rb:
|
51
|
+
Set default format code for binary coders to 1.
|
52
|
+
[336f694f6362]
|
53
|
+
|
54
|
+
* ext/pg_text_encoder.c, spec/pg/type_spec.rb:
|
55
|
+
Add PG::TextEncoder::Bytea .
|
56
|
+
[b10cbaaead6b]
|
57
|
+
|
58
|
+
2014-10-31 Lars Kanis <lars@greiz-reinsdorf.de>
|
59
|
+
|
60
|
+
* lib/pg.rb:
|
61
|
+
Windows: Set the PATH so that the bundled libpq.dll of the binary
|
62
|
+
gem is loaded preferably to other dlls in the system.
|
63
|
+
|
64
|
+
This avoids loading issues, if there is some other libpq.dll in the
|
65
|
+
path, that fails to load for some reason.
|
66
|
+
|
67
|
+
[skip ci]
|
68
|
+
[b2bf034e3b9f]
|
69
|
+
|
70
|
+
2014-10-30 Lars Kanis <lars@greiz-reinsdorf.de>
|
71
|
+
|
72
|
+
* History.rdoc:
|
73
|
+
Update History.rdoc for PG::Connection#hostaddr .
|
74
|
+
[2d1a83316472]
|
75
|
+
|
76
|
+
* .travis.yml:
|
77
|
+
Remove Rubinius from the allowed failure list - failing specs are
|
78
|
+
now marked as pending.
|
79
|
+
[9e707fcf2070]
|
80
|
+
|
81
|
+
* ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
|
82
|
+
Add PG::Connection#hostaddr. This is new in PostgreSQL-9.4.
|
83
|
+
[3a7b6a1d1cfe]
|
84
|
+
|
85
|
+
* .travis.yml, spec/helpers.rb:
|
86
|
+
Update tavis-ci and specs for PostgreSQL-9.4.
|
87
|
+
[4daf11be6d3d]
|
88
|
+
|
89
|
+
2014-10-28 Lars Kanis <lars@greiz-reinsdorf.de>
|
90
|
+
|
91
|
+
* spec/pg/type_spec.rb:
|
92
|
+
Fix typo in specs. Thanks Chris Bandy.
|
93
|
+
[9015809803aa]
|
94
|
+
|
95
|
+
2014-10-27 Lars Kanis <lars@greiz-reinsdorf.de>
|
96
|
+
|
97
|
+
* spec/pg/result_spec.rb:
|
98
|
+
Mark failing tests on Rubinius as pending.
|
99
|
+
[12f053154a99]
|
100
|
+
|
101
|
+
* History.rdoc:
|
102
|
+
Update History.rdoc
|
103
|
+
[b7faf8c1c677]
|
104
|
+
|
105
|
+
* Merge branch 'master' of github.com:larskanis/ruby-pg
|
106
|
+
[0f49f9bc93c6]
|
107
|
+
|
108
|
+
2014-10-27 Lars Kanis <kanis@comcard.de>
|
109
|
+
|
110
|
+
* ext/extconf.rb, ext/pg.h:
|
111
|
+
Fix compat with Rubinius.
|
112
|
+
[3a4e19c56686]
|
113
|
+
|
114
|
+
2014-10-27 Lars Kanis <lars@greiz-reinsdorf.de>
|
115
|
+
|
116
|
+
* ext/pg_result.c, spec/pg/result_spec.rb:
|
117
|
+
Add PG::Result#stream_each and #stream_each_row methods and specs.
|
118
|
+
[9387b7aeaad3]
|
119
|
+
|
120
|
+
* ext/pg_result.c:
|
121
|
+
Fix typo.
|
122
|
+
[d2bfa9acf36b]
|
123
|
+
|
124
|
+
2014-10-25 Lars Kanis <lars@greiz-reinsdorf.de>
|
125
|
+
|
126
|
+
* ext/pg.h, ext/pg_result.c:
|
127
|
+
Use rb_hash_dup() with a prepared tuple hash instead of
|
128
|
+
rb_hash_new().
|
129
|
+
|
130
|
+
This gives a little speedup of 5-10% for Result#each .
|
131
|
+
[dfe51787f74d]
|
132
|
+
|
133
|
+
2014-10-24 Lars Kanis <lars@greiz-reinsdorf.de>
|
134
|
+
|
135
|
+
* ext/pg.h:
|
136
|
+
Add workaround for missing RETURN_SIZED_ENUMERATOR macro in Ruby <
|
137
|
+
2.0.
|
138
|
+
[995d0d85d88d]
|
139
|
+
|
140
|
+
* ext/pg_text_encoder.c:
|
141
|
+
Add include <math.h>. It defines isnan() and isinf().
|
142
|
+
[cadf29e3f863]
|
143
|
+
|
144
|
+
* ext/pg_result.c:
|
145
|
+
Use rb_ary_new4() instead of rb_ary_new_from_values() for compat
|
146
|
+
with Ruby < 2.1.
|
147
|
+
[7c465876616d]
|
148
|
+
|
149
|
+
* ext/pg_result.c:
|
150
|
+
Populate the row-Array in Result#each_row and Result.values per
|
151
|
+
rb_ary_new_from_values() from VALUE array on the stack. The number
|
152
|
+
of fields is limited on the server side to ~1700, so that stack
|
153
|
+
space is not critical. This gives a small speed up by 5%.
|
154
|
+
[adc7a83326e3]
|
155
|
+
|
156
|
+
* ext/pg.h, ext/pg_result.c:
|
157
|
+
Use frozen String objects as field names and reuse them where
|
158
|
+
possible.
|
159
|
+
|
160
|
+
This speeds Result#each up by 30%.
|
161
|
+
[f50c049adc3b]
|
162
|
+
|
163
|
+
* ext/pg_result.c, spec/pg/result_spec.rb:
|
164
|
+
Add Enumerator versions to Result#each and #each_row.
|
165
|
+
[1b324be632e4]
|
166
|
+
|
167
|
+
2014-10-22 Lars Kanis <lars@greiz-reinsdorf.de>
|
168
|
+
|
169
|
+
* ext/pg_connection.c:
|
170
|
+
Merge alloc_query_params() and alloc_query_params1(). The separation
|
171
|
+
is no longer needed.
|
172
|
+
|
173
|
+
Allocate gc_array on demand, as it's not needed for most queries.
|
174
|
+
[aae1c7dd2360]
|
175
|
+
|
176
|
+
* README.rdoc, ext/pg.h, ext/pg_connection.c, ext/pg_copy_coder.c,
|
177
|
+
ext/pg_result.c, ext/pg_type_map.c, ext/pg_type_map_all_strings.c,
|
178
|
+
ext/pg_type_map_by_column.c, ext/pg_type_map_by_mri_type.c,
|
179
|
+
ext/pg_type_map_by_oid.c, spec/pg/basic_type_mapping_spec.rb,
|
180
|
+
spec/pg/connection_spec.rb, spec/pg/result_spec.rb,
|
181
|
+
spec/pg/type_map_by_column_spec.rb,
|
182
|
+
spec/pg/type_map_by_mri_type_spec.rb,
|
183
|
+
spec/pg/type_map_by_oid_spec.rb:
|
184
|
+
Allow cascading of type maps.
|
185
|
+
|
186
|
+
If a value can not be handled by a type map this value isn't handled
|
187
|
+
implicit by TypeMapAllStrings, but instead by the assigned
|
188
|
+
default_type_map, now.
|
189
|
+
[d369d31e8fe3]
|
190
|
+
|
191
|
+
2014-10-17 Lars Kanis <lars@greiz-reinsdorf.de>
|
192
|
+
|
193
|
+
* ext/pg.h, ext/pg_type_map.c, ext/pg_type_map_by_column.c,
|
194
|
+
spec/pg/type_map_by_column_spec.rb:
|
195
|
+
Gracefully handle not initialized state for PG::TypeMapByColumn
|
196
|
+
derivations.
|
197
|
+
[485d02650e09]
|
198
|
+
|
1
199
|
2014-10-15 Lars Kanis <lars@greiz-reinsdorf.de>
|
2
200
|
|
3
201
|
* ext/pg_text_encoder.c, spec/pg/type_spec.rb:
|
4
202
|
Allow non Array values as input for TextEncoder::Array.
|
5
|
-
[a4725dfca9e4]
|
203
|
+
[a4725dfca9e4]
|
6
204
|
|
7
205
|
* ext/pg_coder.c, spec/pg/type_spec.rb:
|
8
206
|
Clarify handling of nil/NULL values by PG::Coders.
|
@@ -53,16 +251,6 @@
|
|
53
251
|
Add type mapping and performance improvements
|
54
252
|
[0da90c2b2812]
|
55
253
|
|
56
|
-
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
57
|
-
Merged with 4cc778c5ead7
|
58
|
-
[67bb0f34ca05]
|
59
|
-
|
60
|
-
2014-08-20 Michael Granger <ged@FaerieMUD.org>
|
61
|
-
|
62
|
-
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
63
|
-
Check connection status with a matcher in specs
|
64
|
-
[b32840b98e4b]
|
65
|
-
|
66
254
|
2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
|
67
255
|
|
68
256
|
* Rakefile, Rakefile.cross, ext/extconf.rb:
|
@@ -155,35 +343,6 @@
|
|
155
343
|
alloc_query_params1() and avoids code duplication within type maps.
|
156
344
|
[2afa6cc41d55]
|
157
345
|
|
158
|
-
2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
|
159
|
-
|
160
|
-
* Rakefile, Rakefile.cross, ext/extconf.rb:
|
161
|
-
gcc option -static-libgcc is required for i386-mingw32 build.
|
162
|
-
|
163
|
-
Don't use native pg_config for cross build. The paths were
|
164
|
-
overwritten anyways until now.
|
165
|
-
|
166
|
-
Remove code that was only needed for static build to libpq.
|
167
|
-
[4cc778c5ead7]
|
168
|
-
|
169
|
-
2014-10-09 Lars Kanis <kanis@comcard.de>
|
170
|
-
|
171
|
-
* Rakefile, Rakefile.cross, lib/pg.rb:
|
172
|
-
Bundle libpq.dll into gem, because PostgreSQL-9.3 does no longer
|
173
|
-
support static linking.
|
174
|
-
[a37e27d356e5]
|
175
|
-
|
176
|
-
2014-10-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
177
|
-
|
178
|
-
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
179
|
-
Add missing spec for hash form parameters to #exec_params .
|
180
|
-
[04a6a0136a12]
|
181
|
-
|
182
|
-
* spec/pg/type_map_by_column_spec.rb:
|
183
|
-
Fix handling of query parameters in hash form in conjunction with
|
184
|
-
type map.
|
185
|
-
[a5f028117537]
|
186
|
-
|
187
346
|
* spec/pg/connection_spec.rb:
|
188
347
|
Add missing spec for hash form parameters to #exec_params .
|
189
348
|
[23ad5d676b53]
|
@@ -1490,6 +1649,42 @@
|
|
1490
1649
|
integer and float values to proper ruby types.
|
1491
1650
|
[71ddc0446d26]
|
1492
1651
|
|
1652
|
+
2014-10-11 Michael Granger <ged@FaerieMUD.org>
|
1653
|
+
|
1654
|
+
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
1655
|
+
Merged with 4cc778c5ead7
|
1656
|
+
[67bb0f34ca05]
|
1657
|
+
|
1658
|
+
2014-08-20 Michael Granger <ged@FaerieMUD.org>
|
1659
|
+
|
1660
|
+
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
1661
|
+
Check connection status with a matcher in specs
|
1662
|
+
[b32840b98e4b]
|
1663
|
+
|
1664
|
+
2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
|
1665
|
+
|
1666
|
+
* Rakefile, Rakefile.cross, ext/extconf.rb:
|
1667
|
+
gcc option -static-libgcc is required for i386-mingw32 build.
|
1668
|
+
|
1669
|
+
Don't use native pg_config for cross build. The paths were
|
1670
|
+
overwritten anyways until now.
|
1671
|
+
|
1672
|
+
Remove code that was only needed for static build to libpq.
|
1673
|
+
[4cc778c5ead7]
|
1674
|
+
|
1675
|
+
2014-10-09 Lars Kanis <kanis@comcard.de>
|
1676
|
+
|
1677
|
+
* Rakefile, Rakefile.cross, lib/pg.rb:
|
1678
|
+
Bundle libpq.dll into gem, because PostgreSQL-9.3 does no longer
|
1679
|
+
support static linking.
|
1680
|
+
[a37e27d356e5]
|
1681
|
+
|
1682
|
+
2014-10-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
1683
|
+
|
1684
|
+
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
1685
|
+
Add missing spec for hash form parameters to #exec_params .
|
1686
|
+
[04a6a0136a12]
|
1687
|
+
|
1493
1688
|
2014-08-24 Lars Kanis <lars@greiz-reinsdorf.de>
|
1494
1689
|
|
1495
1690
|
* ext/pg_connection.c:
|
@@ -1730,17 +1925,6 @@
|
|
1730
1925
|
* merge tip
|
1731
1926
|
[90252df3c5c8]
|
1732
1927
|
|
1733
|
-
2013-08-15 Lars Kanis <lars@greiz-reinsdorf.de>
|
1734
|
-
|
1735
|
-
* Rakefile.cross:
|
1736
|
-
Use RbConfig::CONFIG['CC'] instead of ['host'] for determining cross
|
1737
|
-
compilation platform.
|
1738
|
-
|
1739
|
-
This is 'i586-mingw32msvc-gcc' versus 'i586-pc-mingw32msvc'.
|
1740
|
-
[fbee9586e8f7]
|
1741
|
-
|
1742
|
-
2013-08-18 Lars Kanis <lars@greiz-reinsdorf.de>
|
1743
|
-
|
1744
1928
|
* lib/pg/connection.rb, spec/pg/connection_spec.rb:
|
1745
1929
|
Add PG::Connection#copy_data as a convenience method.
|
1746
1930
|
[5096385267ab]
|
@@ -1750,6 +1934,15 @@
|
|
1750
1934
|
stack method calls.
|
1751
1935
|
[8255d4f73334]
|
1752
1936
|
|
1937
|
+
2013-08-15 Lars Kanis <lars@greiz-reinsdorf.de>
|
1938
|
+
|
1939
|
+
* Rakefile.cross:
|
1940
|
+
Use RbConfig::CONFIG['CC'] instead of ['host'] for determining cross
|
1941
|
+
compilation platform.
|
1942
|
+
|
1943
|
+
This is 'i586-mingw32msvc-gcc' versus 'i586-pc-mingw32msvc'.
|
1944
|
+
[fbee9586e8f7]
|
1945
|
+
|
1753
1946
|
2013-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
|
1754
1947
|
|
1755
1948
|
* Gemfile, Rakefile:
|
@@ -1791,10 +1984,6 @@
|
|
1791
1984
|
Travis: Allow failures on rbx.
|
1792
1985
|
[7be3b156c8fb]
|
1793
1986
|
|
1794
|
-
* spec/pg/column_mapping_spec.rb:
|
1795
|
-
Too less quoting. Should fix compat with PostgreSQL 8.4.
|
1796
|
-
[45fc78971757]
|
1797
|
-
|
1798
1987
|
2013-07-18 Lars Kanis <kanis@comcard.de>
|
1799
1988
|
|
1800
1989
|
* spec/pg/connection_spec.rb:
|
@@ -1830,92 +2019,6 @@
|
|
1830
2019
|
This test failed on Windows x64.
|
1831
2020
|
[6894f73d7039]
|
1832
2021
|
|
1833
|
-
* Manifest.txt:
|
1834
|
-
Add missing files to Manifest.txt.
|
1835
|
-
[3b4bc9524bb3]
|
1836
|
-
|
1837
|
-
* Manifest.txt, ext/pg_column_mapping.c, ext/util.c, ext/util.h:
|
1838
|
-
Add compat with Windows platform.
|
1839
|
-
[3ac02d0ccf19]
|
1840
|
-
|
1841
|
-
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
1842
|
-
Add compat with Ruby-1.8.7.
|
1843
|
-
[7bcb3040fe34]
|
1844
|
-
|
1845
|
-
* spec/pg/column_mapping_spec.rb:
|
1846
|
-
Use old BYTEA escaping for compat with PostgreSQL 8.4
|
1847
|
-
[2fad9e274ad3]
|
1848
|
-
|
1849
|
-
2013-07-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
1850
|
-
|
1851
|
-
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
1852
|
-
Add BinaryBolean converter.
|
1853
|
-
|
1854
|
-
Refactor converter tests.
|
1855
|
-
[06c99b04f572]
|
1856
|
-
|
1857
|
-
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
1858
|
-
Add BinaryFloat converter.
|
1859
|
-
[493b0354c678]
|
1860
|
-
|
1861
|
-
2013-07-03 Lars Kanis <lars@greiz-reinsdorf.de>
|
1862
|
-
|
1863
|
-
* ext/pg_column_mapping.c, lib/pg/result.rb,
|
1864
|
-
spec/pg/column_mapping_spec.rb, spec/pg/result_spec.rb:
|
1865
|
-
Change ColumnMapping#initialize to take one Array arg rather than a
|
1866
|
-
parameter list.
|
1867
|
-
|
1868
|
-
Suggested by Aaron: https://groups.google.com/d/msg/ruby-
|
1869
|
-
pg/PE5K6q9RzBs/M5prOno39DEJ
|
1870
|
-
[c2ca10bf93c5]
|
1871
|
-
|
1872
|
-
* spec/pg/result_spec.rb:
|
1873
|
-
Add test case for all value retrieving methods of PG::Result .
|
1874
|
-
[e1055f877c58]
|
1875
|
-
|
1876
|
-
* spec/pg/column_mapping_spec.rb:
|
1877
|
-
Add test case for default_mapping in Result#map_types!
|
1878
|
-
[489220119795]
|
1879
|
-
|
1880
|
-
* lib/pg/result.rb, spec/pg/column_mapping_spec.rb:
|
1881
|
-
Add convenience method PG::Result#map_types!
|
1882
|
-
[de02df7fb198]
|
1883
|
-
|
1884
|
-
* spec/pg/column_mapping_spec.rb:
|
1885
|
-
Add Boolean ColumnMapping spec and do Integer a bit more compact.
|
1886
|
-
[4256841e088f]
|
1887
|
-
|
1888
|
-
2013-07-01 Lars Kanis <kanis@comcard.de>
|
1889
|
-
|
1890
|
-
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
1891
|
-
Add converter BinaryInteger.
|
1892
|
-
[6f0c8f72962f]
|
1893
|
-
|
1894
|
-
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb,
|
1895
|
-
spec/pg/result_spec.rb:
|
1896
|
-
Use instances of PG::ColumnMapping::CConverter as representation of
|
1897
|
-
the buildin converters instead of plain symbols. Symbol arguments
|
1898
|
-
are converted to these instances, for convenience.
|
1899
|
-
|
1900
|
-
This allows to store and retrieve additional informations to the
|
1901
|
-
conversion and also which conversions are supported.
|
1902
|
-
[e4f6c37b5449]
|
1903
|
-
|
1904
|
-
* ext/pg_column_mapping.c:
|
1905
|
-
Don't depend on TYPE(obj)==T_DATA of a proc object for compat with
|
1906
|
-
rubinius.
|
1907
|
-
[c33c4ac01aaf]
|
1908
|
-
|
1909
|
-
2013-06-29 Lars Kanis <lars@greiz-reinsdorf.de>
|
1910
|
-
|
1911
|
-
* ext/pg.c, ext/pg.h, ext/pg_column_mapping.c, ext/pg_result.c,
|
1912
|
-
spec/pg/result_spec.rb:
|
1913
|
-
Add column based type mapping.
|
1914
|
-
|
1915
|
-
This allowes to speed up result retrieval by directly converting
|
1916
|
-
integer and float values to proper ruby types.
|
1917
|
-
[160c71c0b584]
|
1918
|
-
|
1919
2022
|
2013-07-06 Lars Kanis <lars@greiz-reinsdorf.de>
|
1920
2023
|
|
1921
2024
|
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
@@ -2201,14 +2304,14 @@
|
|
2201
2304
|
avoid warnings about truncated identifier.
|
2202
2305
|
|
2203
2306
|
Thanks to Svoop for this report.
|
2204
|
-
[
|
2307
|
+
[134e067259ee] <v0.15-stable>
|
2205
2308
|
|
2206
2309
|
* lib/pg/connection.rb, spec/pg/connection_spec.rb:
|
2207
2310
|
Send a shortened $0 as application_name to the server in order to
|
2208
2311
|
avoid warnings about truncated identifier.
|
2209
2312
|
|
2210
2313
|
Thanks to Svoop for this report.
|
2211
|
-
[
|
2314
|
+
[9a6791fe9409]
|
2212
2315
|
|
2213
2316
|
2013-03-26 Michael Granger <ged@FaerieMUD.org>
|
2214
2317
|
|
@@ -2296,6 +2399,17 @@
|
|
2296
2399
|
Merge with https://bitbucket.org/ged/ruby-pg
|
2297
2400
|
[3230e6c245e0]
|
2298
2401
|
|
2402
|
+
* Rakefile, Rakefile.cross:
|
2403
|
+
Add support for cross build for multiple platforms (i386-mingw32 and
|
2404
|
+
x64-mingw32).
|
2405
|
+
|
2406
|
+
Update OpenSSL for cross build to 1.0.1e Update PostgreSQL for cross
|
2407
|
+
build to 9.2.3
|
2408
|
+
|
2409
|
+
Remove -lws2_32 for PostgreSQL build. It fails to compile for
|
2410
|
+
x64-mingw32 elsewise.
|
2411
|
+
[6a2a1a53dedc]
|
2412
|
+
|
2299
2413
|
2013-03-12 Michael Granger <ged@FaerieMUD.org>
|
2300
2414
|
|
2301
2415
|
* Rakefile.cross:
|
@@ -2310,19 +2424,6 @@
|
|
2310
2424
|
Bump versions of dev dependencies
|
2311
2425
|
[cba92fb4b89e]
|
2312
2426
|
|
2313
|
-
2013-03-13 Lars Kanis <kanis@comcard.de>
|
2314
|
-
|
2315
|
-
* Rakefile, Rakefile.cross:
|
2316
|
-
Add support for cross build for multiple platforms (i386-mingw32 and
|
2317
|
-
x64-mingw32).
|
2318
|
-
|
2319
|
-
Update OpenSSL for cross build to 1.0.1e Update PostgreSQL for cross
|
2320
|
-
build to 9.2.3
|
2321
|
-
|
2322
|
-
Remove -lws2_32 for PostgreSQL build. It fails to compile for
|
2323
|
-
x64-mingw32 elsewise.
|
2324
|
-
[6a2a1a53dedc]
|
2325
|
-
|
2326
2427
|
2013-03-06 Michael Granger <ged@FaerieMUD.org>
|
2327
2428
|
|
2328
2429
|
* README.rdoc:
|
@@ -2574,6 +2675,61 @@
|
|
2574
2675
|
Make source settings override TM2 defaults
|
2575
2676
|
[c5706b3f73af]
|
2576
2677
|
|
2678
|
+
2012-12-26 Lars Kanis <kanis@comcard.de>
|
2679
|
+
|
2680
|
+
* ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
|
2681
|
+
merge in default branch
|
2682
|
+
[ca39e311d1eb] <use_gvl_for_blocking_functions>
|
2683
|
+
|
2684
|
+
* ext/gvl_wrappers.h:
|
2685
|
+
Add some documentation to gvl_wrappers
|
2686
|
+
[ffeb6a0afd1f] <use_gvl_for_blocking_functions>
|
2687
|
+
|
2688
|
+
* spec/pg/connection_spec.rb:
|
2689
|
+
Add test case for threading with Connection#exec in ruby 1.9
|
2690
|
+
[73b9aa38e8c0] <use_gvl_for_blocking_functions>
|
2691
|
+
|
2692
|
+
* ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
|
2693
|
+
ext/pg_connection.c:
|
2694
|
+
Add wrappers to blocking functions and callbacks in order to release
|
2695
|
+
the GVL of ruby 1.9 as long as not in ruby code
|
2696
|
+
[2f2c681424ed] <use_gvl_for_blocking_functions>
|
2697
|
+
|
2698
|
+
2012-07-02 Lars Kanis <kanis@comcard.de>
|
2699
|
+
|
2700
|
+
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
2701
|
+
Fix encoding of values delivered to the row processor and add specs
|
2702
|
+
for binary and text data.
|
2703
|
+
[bb9c6625fbc9] <row_processor>
|
2704
|
+
|
2705
|
+
* ext/pg_connection.c:
|
2706
|
+
Polish the documentation a little bit
|
2707
|
+
[b7633be3c941] <row_processor>
|
2708
|
+
|
2709
|
+
2012-07-01 Lars Kanis <kanis@comcard.de>
|
2710
|
+
|
2711
|
+
* ext/pg_connection.c:
|
2712
|
+
Get rid of gcc warning about (non-)const PGresult to
|
2713
|
+
pg_new_result_for_callback()
|
2714
|
+
[1a25786ed8f3] <row_processor>
|
2715
|
+
|
2716
|
+
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
2717
|
+
Fix wrong encoding for Result object passed to a notice-receiver
|
2718
|
+
block. Add proper specs for #set_notice_receiver.
|
2719
|
+
[4280826bb9b9] <row_processor>
|
2720
|
+
|
2721
|
+
* ext/extconf.rb, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
|
2722
|
+
spec/lib/helpers.rb, spec/pg/connection_spec.rb:
|
2723
|
+
Implement PostgreSQL-9.2 functions PG::Connection#set_row_processor,
|
2724
|
+
get_row_processor, skip_result
|
2725
|
+
[b7ce4843f4d1] <row_processor>
|
2726
|
+
|
2727
|
+
2012-06-28 Lars Kanis <kanis@comcard.de>
|
2728
|
+
|
2729
|
+
* ext/pg_result.c:
|
2730
|
+
Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
|
2731
|
+
[63998b47da6e] <copy_both_docu>
|
2732
|
+
|
2577
2733
|
2013-01-29 Aaron Patterson <aaron.patterson@gmail.com>
|
2578
2734
|
|
2579
2735
|
* ext/pg_result.c, lib/pg/result.rb, spec/pg/result_spec.rb:
|
@@ -2602,22 +2758,8 @@
|
|
2602
2758
|
Fix encoding of messages delivered by notice callbacks
|
2603
2759
|
[048d07d14867]
|
2604
2760
|
|
2605
|
-
2012-12-29 Lars Kanis <kanis@comcard.de>
|
2606
|
-
|
2607
|
-
* ext/gvl_wrappers.h:
|
2608
|
-
Simplify function declaration for gvl_wrappers a bit more
|
2609
|
-
[39ba7e52207e] <use_gvl_for_blocking_functions>
|
2610
|
-
|
2611
2761
|
2012-12-26 Lars Kanis <kanis@comcard.de>
|
2612
2762
|
|
2613
|
-
* ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
|
2614
|
-
merge in default branch
|
2615
|
-
[ca39e311d1eb] <use_gvl_for_blocking_functions>
|
2616
|
-
|
2617
|
-
* ext/gvl_wrappers.h:
|
2618
|
-
Add some documentation to gvl_wrappers
|
2619
|
-
[ffeb6a0afd1f] <use_gvl_for_blocking_functions>
|
2620
|
-
|
2621
2763
|
* ext/pg.c:
|
2622
2764
|
Use proper const check instead of implicit relation
|
2623
2765
|
[d0c5d5f7f1e8]
|
@@ -2637,23 +2779,12 @@
|
|
2637
2779
|
single row mode of PostgreSQL 9.2)
|
2638
2780
|
[49e3fe1dafdf]
|
2639
2781
|
|
2640
|
-
2012-12-
|
2641
|
-
|
2642
|
-
* spec/pg/connection_spec.rb:
|
2643
|
-
Add test case for threading with Connection#exec in ruby 1.9
|
2644
|
-
[73b9aa38e8c0] <use_gvl_for_blocking_functions>
|
2645
|
-
|
2646
|
-
* ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
|
2647
|
-
ext/pg_connection.c:
|
2648
|
-
Add wrappers to blocking functions and callbacks in order to release
|
2649
|
-
the GVL of ruby 1.9 as long as not in ruby code
|
2650
|
-
[2f2c681424ed] <use_gvl_for_blocking_functions>
|
2782
|
+
2012-12-19 Lars Kanis <kanis@comcard.de>
|
2651
2783
|
|
2652
|
-
* ext/extconf.rb, ext/
|
2653
|
-
|
2654
|
-
Add
|
2655
|
-
|
2656
|
-
[6ad8aa8e10a5] <use_gvl_for_blocking_functions>
|
2784
|
+
* ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
|
2785
|
+
spec/pg/connection_spec.rb:
|
2786
|
+
Add single row mode of PostgreSQL 9.2
|
2787
|
+
[5cf348b75c1c] <single_row_mode>
|
2657
2788
|
|
2658
2789
|
2012-12-19 Michael Granger <ged@FaerieMUD.org>
|
2659
2790
|
|
@@ -2677,14 +2808,6 @@
|
|
2677
2808
|
fix spacing on README.rdoc:21 to improve display on Github
|
2678
2809
|
[807f040166da]
|
2679
2810
|
|
2680
|
-
2012-12-26 Lars Kanis <kanis@comcard.de>
|
2681
|
-
|
2682
|
-
* ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
|
2683
|
-
ext/pg_connection.c:
|
2684
|
-
Add wrappers to blocking functions and callbacks in order to release
|
2685
|
-
the GVL of ruby 1.9 while not in ruby code
|
2686
|
-
[c31ea26b15e9] <use_gvl_for_blocking_functions>
|
2687
|
-
|
2688
2811
|
2012-12-19 Lars Kanis <kanis@comcard.de>
|
2689
2812
|
|
2690
2813
|
* spec/pg/connection_spec.rb:
|
@@ -2701,11 +2824,6 @@
|
|
2701
2824
|
Add spec for PG::Result#field_values
|
2702
2825
|
[3618eb238aba]
|
2703
2826
|
|
2704
|
-
* ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
|
2705
|
-
spec/pg/connection_spec.rb:
|
2706
|
-
Add single row mode of PostgreSQL 9.2
|
2707
|
-
[5cf348b75c1c] <single_row_mode>
|
2708
|
-
|
2709
2827
|
* lib/pg/connection.rb, spec/lib/helpers.rb:
|
2710
2828
|
Restore compatibility with PostgreSQL down to 8.3
|
2711
2829
|
[e4900f62e56d]
|
@@ -2827,15 +2945,6 @@
|
|
2827
2945
|
Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
|
2828
2946
|
[5e0e06440b1a]
|
2829
2947
|
|
2830
|
-
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
2831
|
-
Fix encoding of values delivered to the row processor and add specs
|
2832
|
-
for binary and text data.
|
2833
|
-
[bb9c6625fbc9] <row_processor>
|
2834
|
-
|
2835
|
-
* ext/pg_connection.c:
|
2836
|
-
Polish the documentation a little bit
|
2837
|
-
[b7633be3c941] <row_processor>
|
2838
|
-
|
2839
2948
|
2012-06-23 Michael Granger <ged@FaerieMUD.org>
|
2840
2949
|
|
2841
2950
|
* .hgtags:
|
@@ -2846,33 +2955,6 @@
|
|
2846
2955
|
Added signature for changeset a45710f8db30
|
2847
2956
|
[634e0a42a101] [v0.14.0]
|
2848
2957
|
|
2849
|
-
2012-07-01 Lars Kanis <kanis@comcard.de>
|
2850
|
-
|
2851
|
-
* merge copy_both_docu
|
2852
|
-
[6e8ef5d4d216]
|
2853
|
-
|
2854
|
-
* ext/pg_connection.c:
|
2855
|
-
Get rid of gcc warning about (non-)const PGresult to
|
2856
|
-
pg_new_result_for_callback()
|
2857
|
-
[1a25786ed8f3] <row_processor>
|
2858
|
-
|
2859
|
-
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
2860
|
-
Fix wrong encoding for Result object passed to a notice-receiver
|
2861
|
-
block. Add proper specs for #set_notice_receiver.
|
2862
|
-
[4280826bb9b9] <row_processor>
|
2863
|
-
|
2864
|
-
* ext/extconf.rb, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
|
2865
|
-
spec/lib/helpers.rb, spec/pg/connection_spec.rb:
|
2866
|
-
Implement PostgreSQL-9.2 functions PG::Connection#set_row_processor,
|
2867
|
-
get_row_processor, skip_result
|
2868
|
-
[b7ce4843f4d1] <row_processor>
|
2869
|
-
|
2870
|
-
2012-06-28 Lars Kanis <kanis@comcard.de>
|
2871
|
-
|
2872
|
-
* ext/pg_result.c:
|
2873
|
-
Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
|
2874
|
-
[63998b47da6e] <copy_both_docu>
|
2875
|
-
|
2876
2958
|
2012-06-17 Lars Kanis <kanis@comcard.de>
|
2877
2959
|
|
2878
2960
|
* Rakefile.cross, ext/extconf.rb,
|