MCPcopy Create free account
hub / github.com/apache/cloudberry / main

Function main

src/interfaces/ecpg/test/expected/sql-array.c:105–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105int
106main (void)
107{
108/* exec sql begin declare section */
109
110
111
112
113
114
115
116
117
118
119
120#line 19 "array.pgc"
121 int i = 1 , j ;
122
123#line 20 "array.pgc"
124 int * did = & i ;
125
126#line 21 "array.pgc"
127 short a [ 10 ] = { 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 } ;
128
129#line 22 "array.pgc"
130 timestamp ts [ 10 ] ;
131
132#line 23 "array.pgc"
133 date d [ 10 ] ;
134
135#line 24 "array.pgc"
136 interval in [ 10 ] ;
137
138#line 25 "array.pgc"
139 numeric n [ 10 ] ;
140
141#line 26 "array.pgc"
142 char text [ 25 ] = "klmnopqrst" ;
143
144#line 27 "array.pgc"
145 char * t = ( char * ) malloc ( 11 ) ;
146
147#line 28 "array.pgc"
148 double f ;
149/* exec sql end declare section */
150#line 29 "array.pgc"
151
152
153 strcpy(t, "0123456789");
154 setlocale(LC_ALL, "C");
155
156 ECPGdebug(1, stderr);
157
158 for (j = 0; j < 10; j++) {
159 char str[28];
160 numeric *value;
161 interval *inter;
162

Callers

nothing calls this directly

Calls 15

ECPGdebugFunction · 0.85
PGTYPESdate_from_ascFunction · 0.85
PGTYPESinterval_from_ascFunction · 0.85
PGTYPESnumeric_newFunction · 0.85
PGTYPESnumeric_from_intFunction · 0.85
ECPGconnectFunction · 0.85
sqlprintFunction · 0.85
ECPGsetcommitFunction · 0.85
ECPGtransFunction · 0.85
ECPGdoFunction · 0.85
PGTYPESinterval_newFunction · 0.85

Tested by

no test coverage detected