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

Re: [Andy] how to convert this into a linkSQL statement?

Quote Reply
Re: [Andy] how to convert this into a linkSQL statement? In reply to
I think the script dropping the prefix to the database table might be a bug. I've managed to get around it by manually getting and adding the prefix to the table name like this...

Code:
my $table = $DB->table('easy_pols', 'easy_relations');

my $prefix = $DB->prefix ;

my $cond = GT::SQL::Condition->new( "easy_pols.pol_id" => '!=' => \"${prefix}easy_relations.pol_id_fk");

I'm developing on LinkSQL Version: 2.2.0 so I'm not sure if this may have been addressed in the new version - if you're part of the dev team or can put a word in andy perhaps you could find out?

Regan
Subject Author Views Date
Thread how to convert this into a linkSQL statement? ryel01 3260 May 25, 2005, 4:00 AM
Thread Re: [ryel01] how to convert this into a linkSQL statement?
Andy 3235 May 25, 2005, 4:21 AM
Thread Re: [Andy] how to convert this into a linkSQL statement?
ryel01 3200 May 25, 2005, 5:36 AM
Thread Re: [ryel01] how to convert this into a linkSQL statement?
Andy 3195 May 25, 2005, 6:14 AM
Thread Re: [Andy] how to convert this into a linkSQL statement?
fuzzy logic 3174 May 25, 2005, 7:41 AM
Post Re: [fuzzy logic] how to convert this into a linkSQL statement?
ryel01 3167 May 25, 2005, 3:10 PM
Thread Re: [Andy] how to convert this into a linkSQL statement?
ryel01 3170 May 25, 2005, 3:39 PM
Post Re: [ryel01] how to convert this into a linkSQL statement?
Andy 3150 May 25, 2005, 11:24 PM