pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
To: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] Dumb Perl-related question
Date: Thu, 17 Jun 1999 12:56:25 -0500
Message-ID: <19990617125625.A15387@wallace.ece.rice.edu> (raw)
In-Reply-To: <199906171726.SAA17199@w3s.ie>
References: <199906171726.SAA17199@w3s.ie>

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



view thread (3+ messages)  latest in thread

Message-ID: <19990617125625.A15387@wallace.ece.rice.edu>
Permalink:  ../19990617125625.A15387@wallace.ece.rice.edu/
Also on:    postgresql.org/message-id/19990617125625.A15387@wallace.ece.rice.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: reedstrm@wallace.ece.rice.edu, pgsql-interfaces@hub.org
  Subject: Re: [INTERFACES] Dumb Perl-related question
  In-Reply-To: <19990617125625.A15387@wallace.ece.rice.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox