MCPcopy Create free account
hub / github.com/ByConity/ByConity / isQueryInInteractiveSession

Function isQueryInInteractiveSession

src/Interpreters/executeQuery.cpp:2247–2251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2245}
2246
2247bool isQueryInInteractiveSession(const ContextPtr & context, [[maybe_unused]] const ASTPtr & query)
2248{
2249 return context->hasSessionContext() && (context->getSessionContext().get() != context.get())
2250 && context->getSessionContext()->getCurrentTransaction() != nullptr;
2251}
2252
2253bool isDDLQuery( [[maybe_unused]] const ContextPtr & context, const ASTPtr & query)
2254{

Callers 4

commitMethod · 0.85
prepareCnchTransactionFunction · 0.85
executeQueryImplFunction · 0.85
executeMethod · 0.85

Calls 4

hasSessionContextMethod · 0.80
getCurrentTransactionMethod · 0.80
getMethod · 0.45
getSessionContextMethod · 0.45

Tested by

no test coverage detected