steve_sims has asked for the wisdom of the Perl Monks concerning the following question:
The problem with this is when I try to call the query using search_withlimit(20,10) I get an error telling me there's a problem with my SQL syntax. It seems that the parameter for limit is being filled in with quote marks, and MySQL doesn't like that. The above example ends up getting turned into:Foo::Bar->set_sql(withlimit => q{ select * from table where field = ? limit ? });
I can't work out how to persuade the limit parameter to be filled in without the quotes. Any ideas?select * from table where field = '20' limit '10'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: set_sql, MySQL, Class::DBI and using a SQL LIMIT
by dragonchild (Archbishop) on May 04, 2005 at 14:34 UTC | |
by steve_sims (Initiate) on May 04, 2005 at 16:04 UTC | |
|
Re: set_sql, MySQL, Class::DBI and using a SQL LIMIT
by trammell (Priest) on May 04, 2005 at 16:12 UTC |