Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5DfX-0002PH-1L for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jan 2014 12:09:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W5DfV-0007aK-E3 for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jan 2014 12:09:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5DRc-00021T-4J for pgsql-bugs@postgresql.org; Mon, 20 Jan 2014 11:55:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5DRY-0004MK-2W for pgsql-bugs@postgresql.org; Mon, 20 Jan 2014 11:55:06 +0000 MIME-Version: 1.0 Subject: BUG #8893: Precompiler ECPG doesn't check Var-List in Select corrrect. To: pgsql-bugs@postgresql.org From: herbert.grohmann@vallourec.com Date: Mon, 20 Jan 2014 11:54:11 +0000 Message-ID: <20140120115411.26701.48100@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8893 Logged by: Herbert Grohmann Email address: herbert.grohmann@vallourec.com PostgreSQL version: 9.0.15 Operating system: Open Suse Linux 11.4 Description: EXEC SQL SELECT TO_CHAR(beginn, 'yyyy-mm-dd hh24:mi:ss'), TO_CHAR(ende, 'yyyy-mm-dd hh24:mi:ss'), tot_logisch, tot_15, stiche, laenge, anz_stangenwechsel, stoerzeit_stangenwechsel, stoerzeit_schicht, gueltig, stoerzeit_a1, stoerzeit_a2, stoerzeit_a3, stoerzeit_a4, stoerzeit_a5, stoerzeit_a6, stoerzeit_a7, stoerzeit_a8, stoerzeit_a9, stoerzeit_a10, schichtnr, meister, theor_planlaufzeit, TO_CHAR(time_1_rohr_schicht, 'yyyy-mm-dd hh24:mi:ss'), taktzeitverlust, merk_sammel_laeuft, zeit_sammelstoerung, Merker_Stangenwechsel_laeuft, Merker_Stoerung_laeuft, Merker_Handbetrieb_laeuft, Merker_Tavl_Auto_laeuft, TO_CHAR(d_stw, 'yyyy-mm-dd hh24:mi:ss'), TO_CHAR(d_sto, 'yyyy-mm-dd hh24:mi:ss'), TO_CHAR(d_han, 'yyyy-mm-dd hh24:mi:ss'), TO_CHAR(d_tav, 'yyyy-mm-dd hh24:mi:ss'), gewinn_plantakt, bem1, bem2, bem3, summe_plantakt, Id, sugru_1,sugru_2,sugru_3,sugru_4,sugru_5,sugru_6,sugru_7,sugru_8,sugru_9 stoerzeit_a11,stoerzeit_a12,stoerzeit_a13,stoerzeit_a14,stoerzeit_a15,stoerzeit_a16 INTO :s_schichtsatz FROM ww_stoerung_schichten WHERE ende = to_timestamp(:s_schichtsatz.end, 'yyyy.mm.dd hh24:mi:ss') ; Missing Komma after sugru_9 does not produce a Compiler Error! Bad Program goes in Production. Results :: PgSQL-Error from/ Err=<-201>/07002 -- / test_komma: Key= 2014-01-20 06:00:00| 2014-01-20 13:59:59 PgSQL-Error from/ Err=<-201>/07002 -- / test_komma: Key= 2014-01-20 06:00:00| 2014-01-20 13:59:59 test_komma: Signal received , Stop !!! This is a very old Error ad i hope, you can correct it. An Update to newer Version of PostgreSQL is very problematic. Beast regards Herbert Grohmann -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs