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

Function par_options

src/gpre/par.cpp:2457–2483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2455//
2456
2457static bool par_options(gpre_req* request, bool flag)
2458{
2459 if (!MSC_match(KW_LEFT_PAREN))
2460 return true;
2461
2462 while (true)
2463 {
2464 if (MSC_match(KW_RIGHT_PAREN))
2465 return true;
2466 if (MSC_match(KW_REQUEST_HANDLE))
2467 {
2468 request->req_handle = PAR_native_value(false, true);
2469 request->req_flags |= REQ_exp_hand;
2470 }
2471 else if (MSC_match(KW_TRANSACTION_HANDLE))
2472 request->req_trans = PAR_native_value(false, true);
2473 else if (MSC_match(KW_LEVEL))
2474 request->req_request_level = PAR_native_value(false, false);
2475 else
2476 {
2477 if (!flag)
2478 CPR_s_error("request option");
2479 return false;
2480 }
2481 MSC_match(KW_COMMA);
2482 }
2483}
2484
2485
2486//____________________________________________________________

Callers 3

par_forFunction · 0.70
par_storeFunction · 0.70
par_start_streamFunction · 0.70

Calls 3

MSC_matchFunction · 0.85
PAR_native_valueFunction · 0.85
CPR_s_errorFunction · 0.85

Tested by

no test coverage detected