Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0D06AB5DBF2 for ; Wed, 6 Jul 2011 16:03:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 70889-07 for ; Wed, 6 Jul 2011 19:03:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from oldperseverance.encs.concordia.ca (oldperseverance.encs.concordia.ca [132.205.96.94]) by mail.postgresql.org (Postfix) with ESMTP id B81FEB5DBEF for ; Wed, 6 Jul 2011 16:03:00 -0300 (ADT) Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by oldperseverance.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id p66J30Cr015611 for ; Wed, 6 Jul 2011 15:03:00 -0400 Message-ID: <4E14B164.9060302@encs.concordia.ca> Date: Wed, 06 Jul 2011 15:03:00 -0400 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101125 Lightning/1.0b1 Thunderbird/3.0.11 MIME-Version: 1.0 CC: pgsql-sql@postgresql.org Subject: Re: ERROR: malformed record literal: "",DETAIL: Missing left parenthesis? References: <4E1484F7.5080800@encs.concordia.ca> In-Reply-To: <4E1484F7.5080800@encs.concordia.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2011/07/06 15:03:00 EDT X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.889 tagged_above=-5 required=5 tests=BAYES_00=-1.9, MISSING_HEADERS=1.021, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/22 X-Sequence-Number: 35592 > A question about: ERROR: malformed record literal: "" > DETAIL: Missing left parenthesis. > > Can someone tell me what cause the error? > > ======================== > Table z_drop; > Column | Type > -------------+------------------------ > run_date | character varying(128) > adm_year | character varying(4) > adm_sess | character varying(1) > faculty | character varying(128) > ac_cycle | character varying(128) > deg_code | character varying(128) > discipline | character varying(128) > thesis | character varying(128) > elig_stype | character varying(128) > stud_source | character varying(128) > applied | numeric > reviewed | numeric > accepted | numeric > confirmed | numeric > registered | numeric > hold | numeric > forward | numeric > refused | numeric > cancelled | numeric > other | numeric > pending | numeric > > > PREPARE test(z_drop) AS INSERT INTO z_drop VALUES ($1, $2, $3, $4, $5, > $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, > $21) ; I have fixed it. It should not be z_drop, it should be real column names. The mailing list email appears so slow :-( Only after 4 hours it show! Emi > > EXECUTE test('', '1', '1', '1', '1', '1', '1', '1', '1', '', 1, 1, '1', > '0', '0', '0', '0', '0', '0', '0', '0') ; > > > > > Thank you, > Emi > -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 emilu@encs.concordia.ca +1 514 848-2424 x5884