Re: ECPG doesn't compile CREATE AS EXECUTE properly.

2021-07-06 Thread Michael Paquier
On Tue, Jul 06, 2021 at 05:47:34PM +0900, Kyotaro Horiguchi wrote: > More accurately, I didn't come up with the way to split out some of > the rule-components in a rule out as another rule using the existing > infrastructure. > > [...] > > Then add the following component to the rule "stmt". I se

Re: ECPG doesn't compile CREATE AS EXECUTE properly.

2021-07-06 Thread Kyotaro Horiguchi
Thanks for the comment. At Tue, 6 Jul 2021 11:17:47 +0900, Michael Paquier wrote in > On Thu, Jul 01, 2021 at 06:45:25PM +0900, Kyotaro Horiguchi wrote: > > Separating "CREATE TABLE AS EXECUTE" from ExecuteStmt would be cleaner > > but I avoided to change the syntax tree. Instead the attched ma

Re: ECPG doesn't compile CREATE AS EXECUTE properly.

2021-07-05 Thread Michael Paquier
On Thu, Jul 01, 2021 at 06:45:25PM +0900, Kyotaro Horiguchi wrote: > Separating "CREATE TABLE AS EXECUTE" from ExecuteStmt would be cleaner > but I avoided to change the syntax tree. Instead the attched make > distinction of $$.type of ExecuteStmt between NULL and "" to use to > notify the returned

Re: ECPG doesn't compile CREATE AS EXECUTE properly.

2021-07-01 Thread Kyotaro Horiguchi
At Thu, 01 Jul 2021 18:45:25 +0900 (JST), Kyotaro Horiguchi wrote in > I'll post the test part later. A version incluedes the test part. regards. -- Kyotaro Horiguchi NTT Open Source Software Center >From 6ef902608483f395983da5063db3e0af8d61ed4e Mon Sep 17 00:00:00 2001 From: Kyotaro Horiguc

ECPG doesn't compile CREATE AS EXECUTE properly.

2021-07-01 Thread Kyotaro Horiguchi
Hello. While I looked a patch, I found that the following ECPG statement generates uncompilable .c source. EXEC SQL CREATE TABLE t AS stmt; ecpgtest.c: #line 42 "ecpgtest.pgc" printf("1:dbname=%s\n", dbname); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_execute, crea