MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / put_array_info

Function put_array_info

src/gpre/cmd.cpp:2256–2274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2254//
2255
2256static void put_array_info( gpre_req* request, const gpre_fld* field)
2257{
2258 const ary* array_info = field->fld_array_info;
2259 const SSHORT dims = (SSHORT) array_info->ary_dimension_count;
2260 put_numeric(request, isc_dyn_fld_dimensions, dims);
2261 for (SSHORT i = 0; i < dims; ++i)
2262 {
2263 put_numeric(request, isc_dyn_def_dimension, i);
2264 request->add_byte(isc_dyn_dim_lower);
2265 const SLONG lrange = (SLONG) (array_info->ary_rpt[i].ary_lower);
2266 request->add_word(4);
2267 request->add_long(lrange);
2268 request->add_byte(isc_dyn_dim_upper);
2269 const SLONG urange = (SLONG) (array_info->ary_rpt[i].ary_upper);
2270 request->add_word(4);
2271 request->add_long(urange);
2272 request->add_byte(isc_dyn_end);
2273 }
2274}
2275
2276
2277//____________________________________________________________

Callers 1

put_field_attributesFunction · 0.85

Calls 4

put_numericFunction · 0.70
add_byteMethod · 0.45
add_wordMethod · 0.45
add_longMethod · 0.45

Tested by

no test coverage detected