100{
101
102
103
104#line 12 "sqljson_jsontable.pgc"
105 int foo ;
106
107#line 13 "sqljson_jsontable.pgc"
108
109
111
112 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
113#line 17 "sqljson_jsontable.pgc"
114
116#line 17 "sqljson_jsontable.pgc"
117
119#line 18 "sqljson_jsontable.pgc"
120
122#line 18 "sqljson_jsontable.pgc"
123
124
125 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"select foo from json_table ( jsonb '[{\"foo\":1}]' , '$[*]' as p0 columns ( foo int ) ) jt ( foo )",
ECPGt_EOIT,
126 ECPGt_int,&(foo),(
long)1,(
long)1,
sizeof(
int),
128#line 23 "sqljson_jsontable.pgc"
129
131#line 23 "sqljson_jsontable.pgc"
132
133 printf(
"Found foo=%d\n", foo);
134
135 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"select foo from json_table ( jsonb '[{\"foo\":\"1\"}]' , '$[*]' as p0 columns ( nested '$' as p1 columns ( nested path '$' as p11 columns ( foo int ) ) ) ) jt ( foo )",
ECPGt_EOIT,
136 ECPGt_int,&(foo),(
long)1,(
long)1,
sizeof(
int),
138#line 31 "sqljson_jsontable.pgc"
139
141#line 31 "sqljson_jsontable.pgc"
142
143 printf(
"Found foo=%d\n", foo);
144
146#line 34 "sqljson_jsontable.pgc"
147
149#line 34 "sqljson_jsontable.pgc"
150
151
152 return 0;
153}
bool ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
bool ECPGdisconnect(int lineno, const char *connection_name)
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
bool ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)