I have a column with inflate/deflate triggers and sometimes I get this error:
Not an ARRAY reference at ./Rose/DB/Object/Metadata/Column.pm line 1087
I have not narrowed down the setup to cause this error, it does not happen in
any of my test cases ... just when my application is running.
I tracked it down to be excessive line noise :)
you have:
$value = $method_code->($self, @_[1 .. $#$_]);
which is dereferencing the $_ ARRAY ref? I could not find out where you could
have assigned $_ to anything useful, so I assume this is a typo for $#_ (the
last index in the @_ array).
I have attached a patch for Column.pm and my code now works with the patch.
Thanks
-Cory
Index: Column.pm
===================================================================
--- Column.pm (revision 1254)
+++ Column.pm (working copy)
@@ -1084,7 +1084,7 @@
$key_was_defined = 0;
# Invoke built-in default and inflation code
# (The call must not be in void context)
- $value = $method_code->($self, @_[1 .. $#$_]);
+ $value = $method_code->($self, @_[1 .. $#_]);
}
unless($self->{$is_inflated_key} && $key_was_defined)
@@ -1230,7 +1230,7 @@
$key_was_defined = 0;
# Invoke built-in default and inflation code
# (The call must not be in void context)
- $value = $method_code->($self, @_[1 .. $#$_]);
+ $value = $method_code->($self, @_[1 .. $#_]);
}
unless($self->{$is_inflated_key} && $key_was_defined)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object