Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckrsO-00027r-Pu for pgsql-general@arkaria.postgresql.org; Mon, 06 Mar 2017 12:36:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ckrsO-0002mX-3N for pgsql-general@arkaria.postgresql.org; Mon, 06 Mar 2017 12:36:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckrsM-0002lE-QG for pgsql-general@postgresql.org; Mon, 06 Mar 2017 12:36:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckrsK-0007dr-34 for pgsql-general@postgresql.org; Mon, 06 Mar 2017 12:36:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v26CaPGF007571; Mon, 6 Mar 2017 07:36:25 -0500 From: Tom Lane To: =?UTF-8?Q?G=C3=BCnce_Kaya?= cc: Charles Clavadetscher , pgsql-general@postgresql.org Subject: Re: Fwd: parameter type is unknown error In-reply-to: References: <000401d29670$10e9d870$32bd8950$@swisspug.org> Comments: In-reply-to =?UTF-8?Q?G=C3=BCnce_Kaya?= message dated "Mon, 06 Mar 2017 15:20:33 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7569.1488803785.1@sss.pgh.pa.us> Date: Mon, 06 Mar 2017 07:36:25 -0500 Message-ID: <7570.1488803785@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org =?UTF-8?Q?G=C3=BCnce_Kaya?= writes: > I think the problem is not associated with you suggestion cause I changed > both of two parameter type as varchar(by the way, I deleted address column > and I only have two column that got me crazy!) still doesn't insert any > data. There are a lot of moving parts there, but I think probably the one that is actually failing is that you're passing "400" to a parameter declared as "money". There's no implicit integer-to-money cast so that doesn't work. (That cast is assignment level which is why failing to cast works if you insert directly.) Or at least that's what it appears from your sample call, but I'm confused about why your error message reads ERROR: function cargo.insertinvoice(integer, integer, integer, *unknown, unknown, unknown*, integer, timestamp with time zone, integer, integer, money, timestamp with time zone, timestamp with time zone, timestamp with time zone) does not exist I do not think this message corresponds to the sample call you showed us, because the whole point is that the eleventh parameter wasn't already of type "money". regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general