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

Function gen_cursor_close

src/gpre/languages/pas.cpp:1060–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058//
1059
1060static int gen_cursor_close( const act* action, const gpre_req* request, int column)
1061{
1062 const TEXT* pattern1 = "if %RIs <> nil then";
1063 const TEXT* pattern2 = "isc_dsql_free_statement (%V1, %RF%RIs, %N1);";
1064
1065 PAT args;
1066 args.pat_request = request;
1067 args.pat_vector1 = status_vector(action);
1068 args.pat_value1 = 1;
1069
1070 PATTERN_expand(column, pattern1, &args);
1071 column += INDENT;
1072 begin(column);
1073 PATTERN_expand(column, pattern2, &args);
1074 printa(column, "if (gds__status[2] = 0) then");
1075 column += INDENT;
1076 begin(column);
1077
1078 return column;
1079}
1080
1081
1082//____________________________________________________________

Callers 2

gen_blob_closeFunction · 0.70
gen_s_endFunction · 0.70

Calls 4

PATTERN_expandFunction · 0.85
status_vectorFunction · 0.70
beginFunction · 0.70
printaFunction · 0.70

Tested by

no test coverage detected