my($self, $hasvals, $not, @joins)=@_;
$not=0 unless(defined($not));
my @outjoins=();
- my $str='';
- # init
unless(@joins)
{
@outjoins = @joins = ("INNER");
}
+ my $str='';
if($self->type() != $TYPE_BOOL)
{
- my $cnt=scalar(@joins)+1;
$str .= "t" . scalar(@joins) . ".id='" . $self->{id} . "'";
if($not && !$hasvals)
{