Re: plperl syntax question

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: stan <stanb(at)panix(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: plperl syntax question
Date: 2020-03-13 01:37:02
Message-ID: CAKFQuwZPcoSsOMWhQ_dXHr2M+Jj-rAEVw1_FiAj3dEGHRJ=_Zw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, March 12, 2020, stan <stanb(at)panix(dot)com> wrote:
>
> my $rv3 = spi_exec_query('$stmt');
> What am I doing wrong here?
>

Putting a variable name into a single-quoted string and expecting it to
resolve to the contents of said variable instead of being treated as a
literal.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message stan 2020-03-13 01:39:01 Re: plperl syntax question
Previous Message Kyotaro Horiguchi 2020-03-13 00:49:26 Re: polygon && polygon and precision