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

Function NullCommand

src/backend/tcop/dest.c:239–264  ·  view source on GitHub ↗

---------------- * NullCommand - tell dest that an empty query string was recognized * * This ensures that there will be a recognizable end to the response * to an Execute message in the extended query protocol. * ---------------- */

Source from the content-addressed store, hash-verified

237 * ----------------
238 */
239void
240NullCommand(CommandDest dest)
241{
242 switch (dest)
243 {
244 case DestRemote:
245 case DestRemoteExecute:
246 case DestRemoteSimple:
247
248 /* Tell the FE that we saw an empty query string */
249 pq_putemptymessage('I');
250 break;
251
252 case DestNone:
253 case DestDebug:
254 case DestSPI:
255 case DestTuplestore:
256 case DestIntoRel:
257 case DestCopyOut:
258 case DestSQLFunction:
259 case DestTransientRel:
260 case DestTupleQueue:
261 case DestPersistentstore:
262 break;
263 }
264}
265
266/* ----------------
267 * ReadyForQuery - tell dest that we are ready for a new query

Callers 2

exec_simple_queryFunction · 0.85
exec_execute_messageFunction · 0.85

Calls 1

pq_putemptymessageFunction · 0.85

Tested by

no test coverage detected