Gossamer Forum
Home : Products : Gossamer Links : Discussions :

opearator of GT::SQL::Table

Quote Reply
opearator of GT::SQL::Table
      
From the document, i found

Find all rows with field_name > value:

field_name => ">value"

or field_name-gt => value

when i have a test , it return no link or even error.

$sth = $tab->select( { Timestmp => ">1" } ); #### no link return

or $sth = $tab->select( { Timestmp-gt =>'1' } ); #### error




while i got correct result using
my $condition = GT::SQL::Condition->new( 'Timestmp', '>', '1');
$sth = $tab->select( { blah blah blah} , $condition );


weather i got something wrong with the syntax in first block of the code ?
Quote Reply
Re: [courierb] opearator of GT::SQL::Table In reply to
That only applies to query_sth(), not for select().

Adrian
Quote Reply
Re: [brewt] opearator of GT::SQL::Table In reply to
yeeeeeeeeee very clear.

Thanks a lot