Subject: | "Bizarre copy of HASH in leave" |
Hi,
Thanks for writing a great module.
I've discovered a small bug. I haven't noticed it before, but we've moved to Apache2 + mod_perl 2 and code I've written before doesn't work now!
The error message in the apache log is:
[Thu Dec 15 15:22:04 2005] [error] Error executing run mode 'index': Bizarre copy of HASH in leave at /opt/csw/share/perl/site_perl/Class/DBI/Sweet.pm line 309.\n at /export/sites/cgi-bin/dudley.pl line 12\n
Google revealed this link which explained why this message was happening:
http://www.dbforums.com/showthread.php?mode=hybrid&t=1047580
I've removed the extra % (see below) and it seems to work.
##### Sweet.pm
if ( $part eq 'sql' ) {
####push @sql_parts, join ' ', @{%$sql_parts}{qw/ where order_by limit/};
push @sql_parts, join ' ', @{$sql_parts}{qw/ where order_by limit/};
next;
}
###### snip
Sorry I can't be more insightful.
Best wishes,
David Morgan