pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Togou, Hakim <hakim.togou@capgemini.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15536: ERROR: column "value " does not exist
Date: Wed, 5 Dec 2018 11:02:06 -0300
Message-ID: <20181205140206.rykukyxxp6rot2d4@alvherre.pgsql> (raw)
In-Reply-To: <DB7PR02MB48406AF845D9ABF1F9AF7C1FE8A80@DB7PR02MB4840.eurprd02.prod.outlook.com>

On 2018-Dec-05, Togou, Hakim wrote:

> Hi David,
> I have already quoted the values, this is my query right now:
> 'INSERT INTO assetmanagement$asset("id","ticker","fullname")
>       VALUES ('+'12345678910'+','+'test1'+','+'test2'+');
> It is an execute statement java action.

This is a completely different statement than you first showed --
completely different quoting in column names and values, etc.  You need
to be very exact and strict about what you post, because one of those
quoting things is likely the cause of your problem.  Don't try to
transcribe things manually ... you need to copy & paste instead.

You also need to show exactly what is the error message you're
obtaining.  The server log might be useful too.

> I have tried everything to get the insert a record into an postgres db. This
> is my sql query:
> 'INSERT INTO public."assetmanagement$asset"(ticker, fullname)
>         VALUES (test1,test2);'


-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (7+ messages)  latest in thread

Message-ID: <20181205140206.rykukyxxp6rot2d4@alvherre.pgsql>
Permalink:  ../20181205140206.rykukyxxp6rot2d4@alvherre.pgsql/
Also on:    postgresql.org/message-id/20181205140206.rykukyxxp6rot2d4@alvherre.pgsql

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, hakim.togou@capgemini.com
  Subject: Re: BUG #15536: ERROR: column "value " does not exist
  In-Reply-To: <20181205140206.rykukyxxp6rot2d4@alvherre.pgsql>
  References: <DB7PR02MB48406AF845D9ABF1F9AF7C1FE8A80@DB7PR02MB4840.eurprd02.prod.outlook.com> <20181205140206.rykukyxxp6rot2d4@alvherre.pgsql>

* 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