pg 0.14.1.pre.363 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.rdoc +2 -1
- data/ext/pg_result.c +18 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
== v0.14.1 [2012-
|
1
|
+
== v0.14.1 [2012-09-02] Michael Granger <ged@FaerieMUD.org>
|
2
2
|
|
3
3
|
Important bugfix:
|
4
4
|
|
@@ -15,6 +15,7 @@ Documentation fixes:
|
|
15
15
|
- Add note about the usage scope of the result object received by the
|
16
16
|
#set_notice_receiver block. (Lars Kanis)
|
17
17
|
- Add PGRES_COPY_BOTH to documentation of PG::Result#result_status. (Lars Kanis)
|
18
|
+
- Add some documentation to PG::Result#fnumber (fix for #139)
|
18
19
|
|
19
20
|
|
20
21
|
== v0.14.0 [2012-06-17] Michael Granger <ged@FaerieMUD.org>
|
data/ext/pg_result.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* pg_result.c - PG::Result class extension
|
3
|
-
* $Id: pg_result.c,v
|
3
|
+
* $Id: pg_result.c,v b03c4641e58f 2012/08/14 15:08:34 ged $
|
4
4
|
*
|
5
5
|
*/
|
6
6
|
|
@@ -331,10 +331,24 @@ pgresult_fname(VALUE self, VALUE index)
|
|
331
331
|
* call-seq:
|
332
332
|
* res.fnumber( name ) -> Fixnum
|
333
333
|
*
|
334
|
-
* Returns the index of the field specified by the string
|
334
|
+
* Returns the index of the field specified by the string +name+.
|
335
|
+
* The given +name+ is treated like an identifier in an SQL command, that is,
|
336
|
+
* it is downcased unless double-quoted. For example, given a query result
|
337
|
+
* generated from the SQL command:
|
335
338
|
*
|
336
|
-
*
|
337
|
-
*
|
339
|
+
* result = conn.exec( %{SELECT 1 AS FOO, 2 AS "BAR"} )
|
340
|
+
*
|
341
|
+
* we would have the results:
|
342
|
+
*
|
343
|
+
* result.fname( 0 ) # => "foo"
|
344
|
+
* result.fname( 1 ) # => "BAR"
|
345
|
+
* result.fnumber( "FOO" ) # => 0
|
346
|
+
* result.fnumber( "foo" ) # => 0
|
347
|
+
* result.fnumber( "BAR" ) # => ArgumentError
|
348
|
+
* result.fnumber( %{"BAR"} ) # => 1
|
349
|
+
*
|
350
|
+
* Raises an ArgumentError if the specified +name+ isn't one of the field names;
|
351
|
+
* raises a TypeError if +name+ is not a String.
|
338
352
|
*/
|
339
353
|
static VALUE
|
340
354
|
pgresult_fnumber(VALUE self, VALUE name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.1
|
4
|
+
version: 0.14.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
|
37
37
|
Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
|
38
38
|
cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
-
date: 2012-
|
39
|
+
date: 2012-09-02 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hoe-mercurial
|
metadata.gz.sig
CHANGED
Binary file
|