From: | "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu> |
---|---|
To: | pgsql-interfaces(at)hub(dot)org |
Subject: | Re: [INTERFACES] Dumb Perl-related question |
Date: | 1999-06-17 17:56:25 |
Message-ID: | 19990617125625.A15387@wallace.ece.rice.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
On Thu, Jun 17, 1999 at 06:33:03PM +0000, Brendan McKenna wrote:
>
> What I'm doing looks like this:
>
> $query = "select recipe_name, occasion, num_served, prep_time, " .
> "freezable, instructions " .
> "from recipe " .
> "where recipe_name = '$recipe';";
I'm no perl expert, but your problem sounds like the query is being
constructed without any quotes around the constant, so perl must be eat
them. Does this work?
"where recipe_name = \'$recipe\';";
--
Ross J. Reedstrom, Ph.D., <reedstrm(at)rice(dot)edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005
From | Date | Subject | |
---|---|---|---|
Next Message | Brendan McKenna | 1999-06-17 18:33:03 | Dumb Perl-related question |
Previous Message | Oleg Bartunov | 1999-06-17 16:37:10 | Re: [INTERFACES] Re: [HACKERS] Case tool |