oops - I meant to add:
 
When I wrap the assignment inside an 'eval', the resultant cloned handle, appears to work correctly.
 
regards,
Mathew
 
 
----- Original Message -----
Sent: Tuesday, January 13, 2004 6:04 PM
Subject: bug in $dbh->clone

Hi folks,
 
I beleive I have found a bug in the implementation of the 'clone()' call.  DBI.pm version 1.40, line 636
 
The code in that area deals with the creation of the 'dbi_connect_closure' capability.  In particular, it copies the current handle attributes into the new handle that is being created.
 
The code specifically crashes when trying to assign attributes 'User' and 'CURRENT_USER' - given that 'Username' is already being passed, I suspect that these two attribute names have become deprecated over time.
 
I'd like be able to suggest a solution (except for putting the assignment inside an eval), except that I dont grok " ->{attrib} " syntax used on the database handle -> I haven't seen that capability before... I figure its some type of " -> " overload, but its got me beat...
 
In any case - I hope this bug report is has sufficient info for you to solve the problem.
 
regards,
Mathew
 
PS. I'm not on this mailing list -
 
 



Mathew Robertson   B.E. (Honors)    Senior Engineer
[EMAIL PROTECTED]

96-98 Market Street                              +61 3 8606 4041      tel
South Melbourne, Vic 3205                  +61 3 8606 4001      fax
www.redsheriff.com.au

This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this message in error please notify us immediately by return email or telephone +1 (212) 905-6115, then delete this message. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of RedSheriff.

<<redsheriff-logo.gif>>

Reply via email to