Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUXlv-0005CQ-6G for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2018 14:03:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gUXlt-00057f-Rs for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2018 14:03:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUXko-0002R9-M4 for pgsql-bugs@lists.postgresql.org; Wed, 05 Dec 2018 14:02:18 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUXkh-0000hD-D6 for pgsql-bugs@lists.postgresql.org; Wed, 05 Dec 2018 14:02:18 +0000 Received: by mail-qt1-x841.google.com with SMTP id i7so22285875qtj.10 for ; Wed, 05 Dec 2018 06:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=8XpaqvPCLNzuOpelmj6CJTCa3wV53G1ChL0S0BgKZSo=; b=zmNdS/rMA9MWPy/I5lkj/lkl1RL3OGceJUXfn/bHGrtDD+ajZoKS8dHB4JsEhLfVxW MQlIkWJr0JIptrHehBH4J3y3yKA3srC4viotkegJ9S9CeAvek4TuzuVJaIcRx9v8AV1G rCTm0bD4Y+5M1oEuHKRBw1mL7G/pHdLn1wuypgm5nfB5ILxVSzgDg/hSTANWAZ2W79/W LOqLjjDuH+B7043OU0z4oGBE7eFnmr89EHgKZ+xe/RhQwelPT7Rt6NHlhafa0w+xI2fu KuzjHr9zB8e7WXtmUqCNiYj6o2KA0pAvbGvjaj5Kx/5LYrW/fKLBu9g308lAitoY7e5E z6aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=8XpaqvPCLNzuOpelmj6CJTCa3wV53G1ChL0S0BgKZSo=; b=Ijmjmwh77P0oafSmCAaXt+LvbYjZxr/Umfwnr/+jiz/njM8+pYiIk+lO0Fs5v58eZR qscN8lzVIhGqRg0SltDbHuNzBypu57no1SKv2Szyz0Tghu37960ShWMfR0HRkgYHt8lo nZl1uTW224ExL+HfBS8ooVe11+V2faanlFIXmmPt1XMtrE4UMiX2TTuHBYdQozc/7lr+ q41IGm3u9t5EIW10YOXmhLD81/hJGQa0U15GHif+riB/vvUZTYIKijNsBMds3ahByJ1A QtztkyDEbWkKPwZsVpyK4rdt0/DW+K+uY5mh2xA1BDBmCflr3X15dcLDANvmnmcxecSM 4Log== X-Gm-Message-State: AA+aEWaD/u7T4FkhlcmC6KXqs+kMskXa7Y8vAuKjd3PRUrFARPvn5CC/ maxECSx0vGw4ImCaoGyGG9SxJA== X-Google-Smtp-Source: AFSGD/XN0k4CWl124AcDfz/bMBuAs//l9WiI9kcbtQ8ECpWbwCdC3zx2BiG7MGYBVuZgcOAeQITi+Q== X-Received: by 2002:a0c:9baa:: with SMTP id o42mr23710139qve.25.1544018529228; Wed, 05 Dec 2018 06:02:09 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id y2sm15305155qtb.88.2018.12.05.06.02.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 06:02:08 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id EC0AC72F; Wed, 5 Dec 2018 11:02:06 -0300 (-03) Date: Wed, 5 Dec 2018 11:02:06 -0300 From: Alvaro Herrera To: "Togou, Hakim" Cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #15536: ERROR: column "value " does not exist Message-ID: <20181205140206.rykukyxxp6rot2d4@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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