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

Products: Gossamer Links: Development, Plugins and Globals: Re: [Andy] Format for GT::SQL::Condition: Edit Log

Here is the list of edits for this post
Re: [Andy] Format for GT::SQL::Condition
I do not really understand why it substitues with '?'. It should be substitute with the variable value.
Before Paul yields me again as usually, let me express, that I know what the '?' means, and how is used in DBI.

I also used the the select, also the select_options, and had no problems, when I used the correct GT::SQL syntax.
I was not require to use '>=' operator in select_options, but should work correctly.

Some info from the code itself (it at least explains me better usage of select, than the docs):
Quote:
# $obj->select ($condition, \@select_returns);
# --------------------------------------------
# $condition is a Condition or a hash reference.
#
# $obj->select (\%columns, \@select_returns);
# -------------------------------------------
# $col1 = $val1, $col2 = $val2
#
# @select_returns is a list of the fields that you wish returned. If none are
# specified all fields will be returned.

EDIT: you may want to try to print out the condition after WHERE with that code:
print $cond->sql;

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...

Last edited by:

webmaster33: Sep 10, 2002, 4:49 AM

Edit Log: