Re: [INTERFACES] Dumb Perl-related question

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: [INTERFACES] Dumb Perl-related question
Дата
Msg-id 19990617125625.A15387@wallace.ece.rice.edu
обсуждение исходный текст
Ответ на Dumb Perl-related question  ("Brendan McKenna" <brendan@w3s.ie>)
Список 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@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Rick Sipe
Дата:
Сообщение: unsubscribe
Следующее
От: Craig Orsinger
Дата:
Сообщение: Re: [INTERFACES] esql\c documentation