Gossamer Forum
Home : Products : Gossamer Links : Discussions :

query_sth problem

Quote Reply
query_sth problem
Hi all,

I have a new table linked to links table and want links to search that table. So I pass a hash ref of $args to the query_sth method. the $args basically contains parameters similiar to the $args for links table search, but without fields specific to links table. Strangly the search returns all record in my table. I checked the debug message, the actual sql command is "SELECT * From mytable" with the "WHERE" clause missing! If I extract the search terms from the $args hash and pass them to query_sth like this: query_sth('MyField_name'=>$terms), I can get what I expected.

What's wrong in this case? How can I specify column(s) to be searched in the $args hash?

Thank you in advance for your help.

Long
Subject Author Views Date
Thread query_sth problem long327 4335 Oct 27, 2003, 2:22 PM
Post Re: [long327] query_sth problem
Andy 4234 Oct 28, 2003, 1:26 AM
Thread Re: [long327] query_sth problem
Alex 4221 Oct 28, 2003, 11:07 AM
Thread Re: [Alex] query_sth problem
long327 4223 Oct 28, 2003, 11:22 AM
Thread Re: [long327] query_sth problem
Alex 4211 Oct 28, 2003, 11:23 AM
Thread Re: [Alex] query_sth problem
long327 4211 Oct 28, 2003, 6:00 PM
Thread Re: [long327] query_sth problem
Alex 4217 Oct 28, 2003, 6:43 PM
Thread Re: [Alex] query_sth problem
long327 4201 Oct 28, 2003, 10:22 PM
Post Re: [long327] query_sth problem
afinlr 4183 Oct 29, 2003, 11:38 AM