plpgsql question

From: "Andrew Bartley" <abartley(at)evolvosystems(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: plpgsql question
Date: 2002-08-13 00:40:33
Message-ID: 001301c24262$1a6b67f0$3200a8c0@abartleypc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Luiz Rafael Culik Guimaraes 2002-08-13 01:05:09 list tables
Previous Message Martijn van Oosterhout 2002-08-13 00:31:03 Re: when to use index, and when not to us index - *the* answer :)