forked from oceanbase/oceanbase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse_define.h
More file actions
30 lines (25 loc) · 1.21 KB
/
parse_define.h
File metadata and controls
30 lines (25 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PubL v2 for more details.
*/
#ifndef OCEANBASE_SQL_PARSER_PARSE_DEFINE_
#define OCEANBASE_SQL_PARSER_PARSE_DEFINE_
#include "lib/utility/ob_macro_utils.h"
#define NULL_PTR(x) (OB_UNLIKELY(NULL == (x)))
static const int64_t OB_MAX_PARSER_INT16_VALUE = 32738;
// errno keep consistency with with ob_define.h
static const int32_t OB_PARSER_ERR_NO_MEMORY = -4013;
static const int32_t OB_PARSER_ERR_UNEXPECTED = -4016;
static const int32_t OB_PARSER_ERR_EMPTY_QUERY = -5253;
static const int32_t OB_PARSER_ERR_PARSE_SQL = -5001;
static const int32_t OB_PARSER_ERR_SIZE_OVERFLOW = -4019;
static const int32_t OB_PARSER_SUCCESS = 0;
static const int32_t OB_PARSER_ERR_ILLEGAL_NAME = -5018;
#endif /*OCEANBASE_SQL_PARSER_PARSE_DEFINE_*/