Commit 11a497f9 authored by Michael Meskes's avatar Michael Meskes

More variables gcc moans about

parent 0754b391
...@@ -50,7 +50,7 @@ typedef struct ind { ...@@ -50,7 +50,7 @@ typedef struct ind {
#line 21 "array_of_struct.pgc" #line 21 "array_of_struct.pgc"
int main( int argc, char * argv[] ) int main()
{ {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#line 6 "autoprep.pgc" #line 6 "autoprep.pgc"
int main(int argc, char* argv[]) { int main() {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -151,7 +151,7 @@ error (void) ...@@ -151,7 +151,7 @@ error (void)
} }
int int
main (int argc, char **argv) main ()
{ {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#line 5 "fetch.pgc" #line 5 "fetch.pgc"
int main(int argc, char* argv[]) { int main() {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#line 5 "func.pgc" #line 5 "func.pgc"
int main(int argc, char* argv[]) { int main() {
#line 8 "func.pgc" #line 8 "func.pgc"
char text [ 25 ] ; char text [ 25 ] ;
......
...@@ -91,74 +91,73 @@ struct sqlca_t *ECPGget_sqlca(void); ...@@ -91,74 +91,73 @@ struct sqlca_t *ECPGget_sqlca(void);
#line 4 "indicators.pgc" #line 4 "indicators.pgc"
int main()
int main(int argc, char **argv)
{ {
/* exec sql begin declare section */ /* exec sql begin declare section */
#line 10 "indicators.pgc" #line 9 "indicators.pgc"
int intvar = 5 ; int intvar = 5 ;
#line 11 "indicators.pgc" #line 10 "indicators.pgc"
int nullind = - 1 ; int nullind = - 1 ;
/* exec sql end declare section */ /* exec sql end declare section */
#line 12 "indicators.pgc" #line 11 "indicators.pgc"
ECPGdebug(1,stderr); ECPGdebug(1,stderr);
{ ECPGconnect(__LINE__, 0, "regress1" , NULL, NULL , NULL, 0); } { ECPGconnect(__LINE__, 0, "regress1" , NULL, NULL , NULL, 0); }
#line 16 "indicators.pgc" #line 15 "indicators.pgc"
{ ECPGsetcommit(__LINE__, "off", NULL);} { ECPGsetcommit(__LINE__, "off", NULL);}
#line 17 "indicators.pgc" #line 16 "indicators.pgc"
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table indicator_test ( \"id\" int primary key , \"str\" text not null , val int null )", ECPGt_EOIT, ECPGt_EORT);} { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table indicator_test ( \"id\" int primary key , \"str\" text not null , val int null )", ECPGt_EOIT, ECPGt_EORT);}
#line 22 "indicators.pgc" #line 21 "indicators.pgc"
{ ECPGtrans(__LINE__, NULL, "commit work");} { ECPGtrans(__LINE__, NULL, "commit work");}
#line 23 "indicators.pgc" #line 22 "indicators.pgc"
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 )", ECPGt_EOIT, ECPGt_EORT);} { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 )", ECPGt_EOIT, ECPGt_EORT);}
#line 25 "indicators.pgc" #line 24 "indicators.pgc"
/* use indicator in insert */ /* use indicator in insert */
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 )", { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 )",
ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);}
#line 28 "indicators.pgc" #line 27 "indicators.pgc"
nullind = 0; nullind = 0;
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 )", { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 )",
ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);}
#line 30 "indicators.pgc" #line 29 "indicators.pgc"
{ ECPGtrans(__LINE__, NULL, "commit work");} { ECPGtrans(__LINE__, NULL, "commit work");}
#line 31 "indicators.pgc" #line 30 "indicators.pgc"
/* use indicators to get information about selects */ /* use indicators to get information about selects */
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT, { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT,
ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);} ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
#line 34 "indicators.pgc" #line 33 "indicators.pgc"
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 2", ECPGt_EOIT, { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 2", ECPGt_EOIT,
ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);} ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);}
#line 35 "indicators.pgc" #line 34 "indicators.pgc"
printf("intvar: %d, nullind: %d\n", intvar, nullind); printf("intvar: %d, nullind: %d\n", intvar, nullind);
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 3", ECPGt_EOIT, { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 3", ECPGt_EOIT,
ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);} ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);}
#line 37 "indicators.pgc" #line 36 "indicators.pgc"
printf("intvar: %d, nullind: %d\n", intvar, nullind); printf("intvar: %d, nullind: %d\n", intvar, nullind);
...@@ -167,24 +166,24 @@ int main(int argc, char **argv) ...@@ -167,24 +166,24 @@ int main(int argc, char **argv)
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update indicator_test set val = $1 where id = 1", { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "update indicator_test set val = $1 where id = 1",
ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);} ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EOIT, ECPGt_EORT);}
#line 42 "indicators.pgc" #line 41 "indicators.pgc"
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT, { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select val from indicator_test where id = 1", ECPGt_EOIT,
ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int), ECPGt_int,&(intvar),(long)1,(long)1,sizeof(int),
ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);} ECPGt_int,&(nullind),(long)1,(long)1,sizeof(int), ECPGt_EORT);}
#line 43 "indicators.pgc" #line 42 "indicators.pgc"
printf("intvar: %d, nullind: %d\n", intvar, nullind); printf("intvar: %d, nullind: %d\n", intvar, nullind);
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table indicator_test", ECPGt_EOIT, ECPGt_EORT);} { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table indicator_test", ECPGt_EOIT, ECPGt_EORT);}
#line 46 "indicators.pgc" #line 45 "indicators.pgc"
{ ECPGtrans(__LINE__, NULL, "commit work");} { ECPGtrans(__LINE__, NULL, "commit work");}
#line 47 "indicators.pgc" #line 46 "indicators.pgc"
{ ECPGdisconnect(__LINE__, "CURRENT");} { ECPGdisconnect(__LINE__, "CURRENT");}
#line 49 "indicators.pgc" #line 48 "indicators.pgc"
return 0; return 0;
} }
...@@ -2,87 +2,87 @@ ...@@ -2,87 +2,87 @@
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database regress1 on <DEFAULT> port <DEFAULT> [NO_PID]: ECPGconnect: opening database regress1 on <DEFAULT> port <DEFAULT>
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGsetcommit on line 17: action "off"; connection "regress1" [NO_PID]: ECPGsetcommit on line 16: action "off"; connection "regress1"
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 19: query: create table indicator_test ( "id" int primary key , "str" text not null , val int null ); with 0 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 18: query: create table indicator_test ( "id" int primary key , "str" text not null , val int null ); with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 19: using PQexec [NO_PID]: ecpg_execute on line 18: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 19: OK: CREATE TABLE [NO_PID]: ecpg_execute on line 18: OK: CREATE TABLE
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGtrans on line 23: action "commit work"; connection "regress1" [NO_PID]: ECPGtrans on line 22: action "commit work"; connection "regress1"
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 25: query: insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 ); with 0 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 24: query: insert into indicator_test ( id , str , val ) values ( 1 , 'Hello' , 0 ); with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 25: using PQexec [NO_PID]: ecpg_execute on line 24: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 25: OK: INSERT 0 1 [NO_PID]: ecpg_execute on line 24: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 28: query: insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 ); with 1 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 27: query: insert into indicator_test ( id , str , val ) values ( 2 , 'Hi there' , $1 ); with 1 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 28: using PQexecParams [NO_PID]: ecpg_execute on line 27: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: free_params on line 28: parameter 1 = null [NO_PID]: free_params on line 27: parameter 1 = null
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 28: OK: INSERT 0 1 [NO_PID]: ecpg_execute on line 27: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 30: query: insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 ); with 1 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 29: query: insert into indicator_test ( id , str , val ) values ( 3 , 'Good evening' , $1 ); with 1 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 30: using PQexecParams [NO_PID]: ecpg_execute on line 29: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: free_params on line 30: parameter 1 = 5 [NO_PID]: free_params on line 29: parameter 1 = 5
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 30: OK: INSERT 0 1 [NO_PID]: ecpg_execute on line 29: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGtrans on line 31: action "commit work"; connection "regress1" [NO_PID]: ECPGtrans on line 30: action "commit work"; connection "regress1"
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 34: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 33: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 34: using PQexec [NO_PID]: ecpg_execute on line 33: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 34: correctly got 1 tuples with 1 fields [NO_PID]: ecpg_execute on line 33: correctly got 1 tuples with 1 fields
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 34: RESULT: 0 offset: -1; array: yes [NO_PID]: ecpg_get_data on line 33: RESULT: 0 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 35: query: select val from indicator_test where id = 2; with 0 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 34: query: select val from indicator_test where id = 2; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 35: using PQexec [NO_PID]: ecpg_execute on line 34: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 35: correctly got 1 tuples with 1 fields [NO_PID]: ecpg_execute on line 34: correctly got 1 tuples with 1 fields
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 35: RESULT: offset: -1; array: yes [NO_PID]: ecpg_get_data on line 34: RESULT: offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 37: query: select val from indicator_test where id = 3; with 0 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 36: query: select val from indicator_test where id = 3; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 37: using PQexec [NO_PID]: ecpg_execute on line 36: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 37: correctly got 1 tuples with 1 fields [NO_PID]: ecpg_execute on line 36: correctly got 1 tuples with 1 fields
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 37: RESULT: 5 offset: -1; array: yes [NO_PID]: ecpg_get_data on line 36: RESULT: 5 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 42: query: update indicator_test set val = $1 where id = 1; with 1 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 41: query: update indicator_test set val = $1 where id = 1; with 1 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 42: using PQexecParams [NO_PID]: ecpg_execute on line 41: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: free_params on line 42: parameter 1 = null [NO_PID]: free_params on line 41: parameter 1 = null
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 42: OK: UPDATE 1 [NO_PID]: ecpg_execute on line 41: OK: UPDATE 1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 43: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 42: query: select val from indicator_test where id = 1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 43: using PQexec [NO_PID]: ecpg_execute on line 42: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 43: correctly got 1 tuples with 1 fields [NO_PID]: ecpg_execute on line 42: correctly got 1 tuples with 1 fields
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 43: RESULT: offset: -1; array: yes [NO_PID]: ecpg_get_data on line 42: RESULT: offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 46: query: drop table indicator_test; with 0 parameter(s) on connection regress1 [NO_PID]: ecpg_execute on line 45: query: drop table indicator_test; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 46: using PQexec [NO_PID]: ecpg_execute on line 45: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 46: OK: DROP TABLE [NO_PID]: ecpg_execute on line 45: OK: DROP TABLE
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGtrans on line 47: action "commit work"; connection "regress1" [NO_PID]: ECPGtrans on line 46: action "commit work"; connection "regress1"
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: connection regress1 closed [NO_PID]: ecpg_finish: connection regress1 closed
[NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: sqlca: code: 0, state: 00000
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#line 5 "insupd.pgc" #line 5 "insupd.pgc"
int main(int argc, char* argv[]) { int main() {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#line 6 "parser.pgc" #line 6 "parser.pgc"
int main(int argc, char* argv[]) { int main() {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#line 5 "quote.pgc" #line 5 "quote.pgc"
int main(int argc, char* argv[]) { int main() {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#line 5 "show.pgc" #line 5 "show.pgc"
int main(int argc, char* argv[]) { int main() {
/* exec sql begin declare section */ /* exec sql begin declare section */
......
...@@ -195,7 +195,7 @@ if (sqlca.sqlcode < 0) sqlprint();} ...@@ -195,7 +195,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
return 0; return 0;
} }
int main (int argc, char** argv) int main ()
{ {
int i; int i;
#ifdef WIN32 #ifdef WIN32
......
...@@ -44,7 +44,7 @@ void *test_thread(void *arg); ...@@ -44,7 +44,7 @@ void *test_thread(void *arg);
int nthreads = 10; int nthreads = 10;
int iterations = 20; int iterations = 20;
int main(int argc, char *argv[]) int main()
{ {
#ifndef WIN32 #ifndef WIN32
pthread_t *threads; pthread_t *threads;
......
...@@ -45,7 +45,7 @@ void *test_thread(void *arg); ...@@ -45,7 +45,7 @@ void *test_thread(void *arg);
int nthreads = 10; int nthreads = 10;
int iterations = 20; int iterations = 20;
int main(int argc, char *argv[]) int main()
{ {
#ifndef WIN32 #ifndef WIN32
pthread_t *threads; pthread_t *threads;
......
...@@ -20,7 +20,7 @@ EXEC SQL TYPE cust_ind IS ...@@ -20,7 +20,7 @@ EXEC SQL TYPE cust_ind IS
short phone_ind; short phone_ind;
}; };
int main( int argc, char * argv[] ) int main()
{ {
EXEC SQL begin declare section; EXEC SQL begin declare section;
customer custs1[10]; customer custs1[10];
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/* test automatic prepare for all statements */ /* test automatic prepare for all statements */
EXEC SQL INCLUDE ../regression; EXEC SQL INCLUDE ../regression;
int main(int argc, char* argv[]) { int main() {
EXEC SQL BEGIN DECLARE SECTION; EXEC SQL BEGIN DECLARE SECTION;
int item[4], ind[4], i = 1; int item[4], ind[4], i = 1;
EXEC SQL END DECLARE SECTION; EXEC SQL END DECLARE SECTION;
......
...@@ -16,7 +16,7 @@ error (void) ...@@ -16,7 +16,7 @@ error (void)
} }
int int
main (int argc, char **argv) main ()
{ {
exec sql begin declare section; exec sql begin declare section;
int COUNT; int COUNT;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
EXEC SQL INCLUDE ../regression; EXEC SQL INCLUDE ../regression;
int main(int argc, char* argv[]) { int main() {
EXEC SQL BEGIN DECLARE SECTION; EXEC SQL BEGIN DECLARE SECTION;
char str[25]; char str[25];
int i, count=1; int i, count=1;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
EXEC SQL INCLUDE ../regression; EXEC SQL INCLUDE ../regression;
int main(int argc, char* argv[]) { int main() {
EXEC SQL char text[25]; EXEC SQL char text[25];
ECPGdebug(1, stderr); ECPGdebug(1, stderr);
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
exec sql include sqlca; exec sql include sqlca;
exec sql include ../regression; exec sql include ../regression;
int main()
int main(int argc, char **argv)
{ {
exec sql begin declare section; exec sql begin declare section;
int intvar = 5; int intvar = 5;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
EXEC SQL INCLUDE ../regression; EXEC SQL INCLUDE ../regression;
int main(int argc, char* argv[]) { int main() {
EXEC SQL BEGIN DECLARE SECTION; EXEC SQL BEGIN DECLARE SECTION;
int i1[3], i2[3]; int i1[3], i2[3];
EXEC SQL END DECLARE SECTION; EXEC SQL END DECLARE SECTION;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/* test parser addition that merges two tokens into one */ /* test parser addition that merges two tokens into one */
EXEC SQL INCLUDE ../regression; EXEC SQL INCLUDE ../regression;
int main(int argc, char* argv[]) { int main() {
EXEC SQL BEGIN DECLARE SECTION; EXEC SQL BEGIN DECLARE SECTION;
int item[3], ind[3], i; int item[3], ind[3], i;
EXEC SQL END DECLARE SECTION; EXEC SQL END DECLARE SECTION;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
EXEC SQL INCLUDE ../regression; EXEC SQL INCLUDE ../regression;
int main(int argc, char* argv[]) { int main() {
EXEC SQL BEGIN DECLARE SECTION; EXEC SQL BEGIN DECLARE SECTION;
char var[25]; char var[25];
int i; int i;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
EXEC SQL INCLUDE ../regression; EXEC SQL INCLUDE ../regression;
int main(int argc, char* argv[]) { int main() {
EXEC SQL BEGIN DECLARE SECTION; EXEC SQL BEGIN DECLARE SECTION;
char var[25] = "public"; char var[25] = "public";
EXEC SQL END DECLARE SECTION; EXEC SQL END DECLARE SECTION;
......
...@@ -57,7 +57,7 @@ static void* fn(void* arg) ...@@ -57,7 +57,7 @@ static void* fn(void* arg)
return 0; return 0;
} }
int main (int argc, char** argv) int main ()
{ {
int i; int i;
#ifdef WIN32 #ifdef WIN32
......
...@@ -26,7 +26,7 @@ void *test_thread(void *arg); ...@@ -26,7 +26,7 @@ void *test_thread(void *arg);
int nthreads = 10; int nthreads = 10;
int iterations = 20; int iterations = 20;
int main(int argc, char *argv[]) int main()
{ {
#ifndef WIN32 #ifndef WIN32
pthread_t *threads; pthread_t *threads;
......
...@@ -27,7 +27,7 @@ void *test_thread(void *arg); ...@@ -27,7 +27,7 @@ void *test_thread(void *arg);
int nthreads = 10; int nthreads = 10;
int iterations = 20; int iterations = 20;
int main(int argc, char *argv[]) int main()
{ {
#ifndef WIN32 #ifndef WIN32
pthread_t *threads; pthread_t *threads;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment