plpgsql question - Mailing list pgsql-general

From Andrew Bartley
Subject plpgsql question
Date
Msg-id 001301c24262$1a6b67f0$3200a8c0@abartleypc
Whole thread Raw
In response to question about upper limit on TEXT size  (Cindy <ctmoore@uci.edu>)
Responses Re: plpgsql question
List pgsql-general
Hi all.

I am trying to do the following in plpgsql.

Can someone advise

create table test
(
"Test Column"    varchar(10)
);

In the plpgsql function I am trying to update this column.

update    test
set          "Test Column" = ''test data'';

The function fails with

Error: Error while executing the query;

ERROR: unterminated " in name "Test

(State:S1000, Native Code: 1)


It works fine if the column name is "TestColumn" but not "Test Column".


Thanks

Andrew


pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: when to use index, and when not to us index - *the* answer :)
Next
From: "Luiz Rafael Culik Guimaraes"
Date:
Subject: list tables