Docs patch - id

[prev] [thread] [next] [Date index for 2004/06/21]

From: William McKee
Subject: Docs patch - id
Date: 17:43 on 21 Jun 2004
--48TaNjbzBVislYPb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi Tony,

While reviewing the docs regarding the id method, I came across some
misinformation. Attached is a patch.


William

        -- 
        Knowmad Services Inc.
http://www.knowmad.com

--48TaNjbzBVislYPb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="DBI.pm.diff"

--- DBI.pm.orig	2004-06-21 13:39:58.000000000 -0400
+++ DBI.pm	2004-06-21 13:40:46.000000000 -0400
@@ -2153,8 +2153,10 @@
 	$id = $obj->id;
 
 Returns a unique identifier for this object.  It's the equivalent of
-$obj->get($self->columns('Primary'));  A warning will be generated
-if this method is used on a table with a multi-column primary key.
+$obj->get($self->columns('Primary'));  Returns an array if called in list
+context on a table with multiple primary keys. A warning will be generated if
+this method is used in scalar context on a table with a multi-column primary
+key.
 
 =head2 LOW-LEVEL DATA ACCESS
 

--48TaNjbzBVislYPb--

Docs patch - id
William McKee 17:43 on 21 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52