murder AUTOLOAD by default because I keep getting confused by it while debugging
[scpubgit/Q-Branch.git] / lib / SQL / Abstract.pm
index 3ea5600..bde5666 100644 (file)
@@ -1645,6 +1645,7 @@ sub AUTOLOAD {
     # This allows us to check for a local, then _form, attr
     my $self = shift;
     my($name) = $AUTOLOAD =~ /.*::(.+)/;
+    puke "AUTOLOAD invoked for method name ${name} and allow_autoload option not set" unless $self->{allow_autoload};
     return $self->generate($name, @_);
 }