YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/src/yb/yql/cql/ql/ptree/pt_transaction.cc
Line
Count
Source
1
//--------------------------------------------------------------------------------------------------
2
// Copyright (c) YugaByte, Inc.
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
// in compliance with the License.  You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software distributed under the License
10
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
// or implied.  See the License for the specific language governing permissions and limitations
12
// under the License.
13
//
14
//
15
// Treenode implementation for TRANSACTION statements.
16
//--------------------------------------------------------------------------------------------------
17
18
#include "yb/yql/cql/ql/ptree/pt_transaction.h"
19
20
#include "yb/util/status.h"
21
22
namespace yb {
23
namespace ql {
24
25
//--------------------------------------------------------------------------------------------------
26
27
PTStartTransaction::PTStartTransaction(MemoryContext *memctx, YBLocationPtr loc)
28
750
    : TreeNode(memctx, loc) {
29
750
}
30
31
734
PTStartTransaction::~PTStartTransaction() {
32
734
}
33
34
750
Status PTStartTransaction::Analyze(SemContext *sem_context) {
35
750
  return Status::OK();
36
750
}
37
38
//--------------------------------------------------------------------------------------------------
39
40
PTCommit::PTCommit(MemoryContext *memctx, YBLocationPtr loc)
41
751
    : TreeNode(memctx, loc) {
42
751
}
43
44
735
PTCommit::~PTCommit() {
45
735
}
46
47
742
Status PTCommit::Analyze(SemContext *sem_context) {
48
742
  return Status::OK();
49
742
}
50
51
}  // namespace ql
52
}  // namespace yb