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

Class CurrentTimeStampNode

src/dsql/ExprNodes.h:474–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472
473
474class CurrentTimeStampNode final : public TypedNode<ValueExprNode, ExprNode::TYPE_CURRENT_TIMESTAMP>
475{
476public:
477 CurrentTimeStampNode(MemoryPool& pool, unsigned aPrecision)
478 : TypedNode<ValueExprNode, ExprNode::TYPE_CURRENT_TIMESTAMP>(pool),
479 precision(aPrecision)
480 {
481 }
482
483 static DmlNode* parse(thread_db* tdbb, MemoryPool& pool, CompilerScratch* csb, const UCHAR blrOp);
484
485 virtual Firebird::string internalPrint(NodePrinter& printer) const;
486 virtual ValueExprNode* dsqlPass(DsqlCompilerScratch* dsqlScratch);
487 virtual void setParameterName(dsql_par* parameter) const;
488 virtual void genBlr(DsqlCompilerScratch* dsqlScratch);
489 virtual void make(DsqlCompilerScratch* dsqlScratch, dsc* desc);
490
491 virtual void getDesc(thread_db* tdbb, CompilerScratch* csb, dsc* desc);
492 virtual ValueExprNode* copy(thread_db* tdbb, NodeCopier& copier) const;
493 virtual ValueExprNode* pass2(thread_db* tdbb, CompilerScratch* csb);
494 virtual dsc* execute(thread_db* tdbb, Request* request) const;
495
496public:
497 unsigned precision;
498};
499
500
501class CurrentRoleNode final : public TypedNode<ValueExprNode, ExprNode::TYPE_CURRENT_ROLE>

Callers 2

parseMethod · 0.85
copyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected