CUBRID Engine  latest
api_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 /*
20  * api_compat.h -
21  */
22 
23 #ifndef _API_COMPAT_H_
24 #define _API_COMPAT_H_
25 
26 struct db_session
27 {
28  char *stage; /* vector of statements' stage */
29  char include_oid; /* NO_OIDS, ROW_OIDS */
30  int dimension; /* Number of statements */
31  int stmt_ndx; /* 0 <= stmt_ndx < DIM(statements) */
32  /* statements[stmt_ndx] will be processed by next call to db_compile_statement. */
33  int line_offset; /* amount to add to parsers line number */
34  int column_offset; /* amount to add to parsers column number */
35  PARSER_CONTEXT *parser; /* handle to parser context structure */
36  DB_QUERY_TYPE **type_list; /* for storing "nice" column headings */
37  /* type_list[stmt_ndx] is itself an array. */
38  PT_NODE **statements; /* statements to be processed in this session */
39 
40  bool is_subsession_for_prepared; /* whether this session is created for running a prepared statement, as a
41  * sub-session of a "true" client session */
42  DB_SESSION *next; /* subsessions for prepared statements */
43 };
44 
45 #endif /* _API_COMPAT_H_ */
int column_offset
Definition: api_compat.h:34
PT_NODE ** statements
Definition: api_compat.h:38
DB_SESSION * next
Definition: api_compat.h:42
int dimension
Definition: api_compat.h:30
bool is_subsession_for_prepared
Definition: api_compat.h:40
int stmt_ndx
Definition: api_compat.h:31
char include_oid
Definition: api_compat.h:29
DB_QUERY_TYPE ** type_list
Definition: api_compat.h:36
PARSER_CONTEXT * parser
Definition: api_compat.h:35
int line_offset
Definition: api_compat.h:33
char * stage
Definition: api_compat.h:28