X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C43653A5506 for ; Wed, 1 Dec 2004 21:58:22 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77999-08 for ; Wed, 1 Dec 2004 21:58:11 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by svr1.postgresql.org (Postfix) with ESMTP id 41D503A54A3 for ; Wed, 1 Dec 2004 21:58:11 +0000 (GMT) Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 6825618001B8 for ; Wed, 1 Dec 2004 21:58:11 +0000 (GMT) X-OB-Received: from unknown (205.158.62.133) by wfilter.us4.outblaze.com; 1 Dec 2004 21:58:11 -0000 Received: by ws5-3.us4.outblaze.com (Postfix, from userid 1001) id 476CF23CE8; Wed, 1 Dec 2004 21:58:11 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [80.41.38.181] by ws5-3.us4.outblaze.com with http for andrew.thorley@linuxmail.org; Thu, 02 Dec 2004 05:58:11 +0800 From: "Andrew Thorley" To: "Michael Fuhr" Cc: pgsql-sql@postgresql.org Date: Thu, 02 Dec 2004 05:58:11 +0800 Subject: Re: inserting values into types X-Originating-Ip: 80.41.38.181 X-Originating-Server: ws5-3.us4.outblaze.com Message-Id: <20041201215811.476CF23CE8@ws5-3.us4.outblaze.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/7 X-Sequence-Number: 19627 hi mike, sorry for confusion, the test_x is my mistake, its from another type i crea= ted which is executing the same code. my error i get from: CREATE TYPE qwerty_UDT AS (abc INT); CREATE TABLE t (col1 qwerty_UDT); INSERT INTO t (col1) VALUES (qwerty_UDT(123)); is: ERROR: function qwerty_udt(integer) does not exist HINT: No function matches the given name and argument types. You may need = to add explicit type casts. ----- Original Message ----- From: "Michael Fuhr" To: "Andrew Thorley" Subject: Re: [SQL] inserting values into types Date: Wed, 1 Dec 2004 10:53:01 -0700 >=20 > On Wed, Dec 01, 2004 at 06:07:34PM +0800, Andrew Thorley wrote: >=20 > > > Did you type the SQL statements and/or error messages instead > > > of cutting and pasting? > > > > yes i C&P'ed the SQL code & error code. >=20 > But did you copy the error message associated with the SQL code you > copied, or did you copy some other error message? I ask because > the function name in the error doesn't match the function name in > the INSERT statement. Here's what I get when I execute the statements > in your message: >=20 > test=3D> CREATE TYPE qwerty_UDT AS (abc INT); > CREATE TYPE > test=3D> CREATE TABLE t (col1 qwerty_UDT); > CREATE TABLE > test=3D> INSERT INTO t (col1) Values (qwerty_UDT(123)); > ERROR: function qwerty_udt(integer) does not exist >=20 > You said the error you got was: >=20 > ERROR: function test_x(integer) does not exist >=20 > The error is the same but the detail differs: your error refers > to test_x(integer) instead of qwerty_udt(integer). So where is > test_x coming from? >=20 > -- > Michael Fuhr > http://www.fuhr.org/~mfuhr/ --=20 ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org=20 This allows you to send and receive SMS through your mailbox. Powered by Outblaze