Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Unhelpful SQL error :/

Quote Reply
Re: [Andy] Unhelpful SQL error :/ In reply to
Just a suggestion - try:

my $cond = GT::SQL::Condition->new('AssignedToPackage', '=', $_, 'AlreadyChecked', '=', '0');

my $count = $table->count($cond) or die $GT::SQL::error;

I've had a quick look at my code - I'm using count successfully but in every case I'm using it in this form.

Are you sure that $_ has a value and have you tried '0' with quotes.

Last edited by:

afinlr: Sep 17, 2003, 5:03 PM
Subject Author Views Date
Thread Unhelpful SQL error :/ Andy 2273 Sep 17, 2003, 1:22 PM
Thread Re: [Andy] Unhelpful SQL error :/
Andy 2208 Sep 17, 2003, 2:15 PM
Thread Re: [Andy] Unhelpful SQL error :/
afinlr 2210 Sep 17, 2003, 5:00 PM
Post Re: [afinlr] Unhelpful SQL error :/
Andy 2175 Sep 18, 2003, 2:21 AM