|
drizzle
C++ MySQL-protocol-compatible database server
|
#include "univ.i"#include "que0types.h"#include "usr0types.h"#include "pars0types.h"#include "row0types.h"#include "trx0types.h"#include "ut0vec.h"Go to the source code of this file.
Classes | |
| struct | pars_info_struct |
| struct | pars_user_func_struct |
| struct | pars_bound_lit_struct |
| struct | pars_bound_id_struct |
| struct | pars_res_word_struct |
| struct | func_node_struct |
| struct | order_node_struct |
| struct | proc_node_struct |
| struct | elsif_node_struct |
| struct | if_node_struct |
| struct | while_node_struct |
| struct | for_node_struct |
| struct | exit_node_struct |
| struct | return_node_struct |
| struct | assign_node_struct |
| struct | col_assign_node_struct |
Macros | |
| #define | pars0pars_h |
| #define | PARS_INPUT 0 |
| #define | PARS_OUTPUT 1 |
| #define | PARS_NOT_PARAM 2 |
| #define | PARS_FUNC_ARITH 1 |
| #define | PARS_FUNC_LOGICAL 2 |
| #define | PARS_FUNC_CMP 3 |
| #define | PARS_FUNC_PREDEFINED 4 |
| #define | PARS_FUNC_AGGREGATE 5 |
| #define | PARS_FUNC_OTHER 6 |
Typedefs | |
| typedef void *(* | pars_user_func_cb_t) (void *arg, void *user_arg) |
Functions | |
| UNIV_INTERN que_t * | pars_sql (pars_info_t *info, const char *str) |
| UNIV_INTERN void | pars_get_lex_chars (char *buf, int *result, int max_size) |
| UNIV_INTERN void | yyerror (const char *s) |
| UNIV_INTERN sym_node_t * | pars_variable_declaration (sym_node_t *node, pars_res_word_t *type) |
| UNIV_INTERN func_node_t * | pars_func (que_node_t *res_word, que_node_t *arg) |
| UNIV_INTERN func_node_t * | pars_op (int func, que_node_t *arg1, que_node_t *arg2) |
| UNIV_INTERN order_node_t * | pars_order_by (sym_node_t *column, pars_res_word_t *asc) |
| UNIV_INTERN sel_node_t * | pars_select_list (que_node_t *select_list, sym_node_t *into_list) |
| UNIV_INTERN que_node_t * | pars_cursor_declaration (sym_node_t *sym_node, sel_node_t *select_node) |
| UNIV_INTERN que_node_t * | pars_function_declaration (sym_node_t *sym_node) |
| UNIV_INTERN sel_node_t * | pars_select_statement (sel_node_t *select_node, sym_node_t *table_list, que_node_t *search_cond, pars_res_word_t *for_update, pars_res_word_t *consistent_read, order_node_t *order_by) |
| UNIV_INTERN col_assign_node_t * | pars_column_assignment (sym_node_t *column, que_node_t *exp) |
| UNIV_INTERN upd_node_t * | pars_update_statement_start (ibool is_delete, sym_node_t *table_sym, col_assign_node_t *col_assign_list) |
| UNIV_INTERN upd_node_t * | pars_update_statement (upd_node_t *node, sym_node_t *cursor_sym, que_node_t *search_cond) |
| UNIV_INTERN ins_node_t * | pars_insert_statement (sym_node_t *table_sym, que_node_t *values_list, sel_node_t *select) |
| UNIV_INTERN sym_node_t * | pars_parameter_declaration (sym_node_t *node, ulint param_type, pars_res_word_t *type) |
| UNIV_INTERN elsif_node_t * | pars_elsif_element (que_node_t *cond, que_node_t *stat_list) |
| UNIV_INTERN if_node_t * | pars_if_statement (que_node_t *cond, que_node_t *stat_list, que_node_t *else_part) |
| UNIV_INTERN for_node_t * | pars_for_statement (sym_node_t *loop_var, que_node_t *loop_start_limit, que_node_t *loop_end_limit, que_node_t *stat_list) |
| UNIV_INTERN while_node_t * | pars_while_statement (que_node_t *cond, que_node_t *stat_list) |
| UNIV_INTERN exit_node_t * | pars_exit_statement (void) |
| UNIV_INTERN return_node_t * | pars_return_statement (void) |
| UNIV_INTERN func_node_t * | pars_procedure_call (que_node_t *res_word, que_node_t *args) |
| UNIV_INTERN assign_node_t * | pars_assignment_statement (sym_node_t *var, que_node_t *val) |
| UNIV_INTERN fetch_node_t * | pars_fetch_statement (sym_node_t *cursor, sym_node_t *into_list, sym_node_t *user_func) |
| UNIV_INTERN open_node_t * | pars_open_statement (ulint type, sym_node_t *cursor) |
| UNIV_INTERN row_printf_node_t * | pars_row_printf_statement (sel_node_t *sel_node) |
| UNIV_INTERN commit_node_t * | pars_commit_statement (void) |
| UNIV_INTERN roll_node_t * | pars_rollback_statement (void) |
| UNIV_INTERN sym_node_t * | pars_column_def (sym_node_t *sym_node, pars_res_word_t *type, sym_node_t *len, void *is_unsigned, void *is_not_null) |
| UNIV_INTERN tab_node_t * | pars_create_table (sym_node_t *table_sym, sym_node_t *column_defs, void *not_fit_in_memory) |
| UNIV_INTERN ind_node_t * | pars_create_index (pars_res_word_t *unique_def, pars_res_word_t *clustered_def, sym_node_t *index_sym, sym_node_t *table_sym, sym_node_t *column_list) |
| UNIV_INTERN que_fork_t * | pars_procedure_definition (sym_node_t *sym_node, sym_node_t *param_list, que_node_t *stat_list) |
| UNIV_INTERN que_fork_t * | pars_stored_procedure_call (sym_node_t *sym_node) |
| UNIV_INTERN que_thr_t * | pars_complete_graph_for_exec (que_node_t *node, trx_t *trx, mem_heap_t *heap) |
| UNIV_INTERN pars_info_t * | pars_info_create (void) |
| UNIV_INTERN void | pars_info_free (pars_info_t *info) |
| UNIV_INTERN void | pars_info_add_literal (pars_info_t *info, const char *name, const void *address, ulint length, ulint type, ulint prtype) |
| UNIV_INTERN void | pars_info_add_str_literal (pars_info_t *info, const char *name, const char *str) |
| UNIV_INTERN void | pars_info_add_int4_literal (pars_info_t *info, const char *name, lint val) |
| UNIV_INTERN void | pars_info_add_ull_literal (pars_info_t *info, const char *name, ib_uint64_t val) |
| UNIV_INTERN void | pars_info_add_function (pars_info_t *info, const char *name, pars_user_func_cb_t func, void *arg) |
| UNIV_INTERN void | pars_info_add_id (pars_info_t *info, const char *name, const char *id) |
| UNIV_INTERN pars_user_func_t * | pars_info_get_user_func (pars_info_t *info, const char *name) |
| UNIV_INTERN pars_bound_lit_t * | pars_info_get_bound_lit (pars_info_t *info, const char *name) |
| UNIV_INTERN pars_bound_id_t * | pars_info_get_bound_id (pars_info_t *info, const char *name) |
| UNIV_INTERN void | pars_lexer_close (void) |
| #define pars0pars_h |
Definition at line 28 of file pars0pars.h.
| #define PARS_FUNC_AGGREGATE 5 |
COUNT, DISTINCT, SUM
Definition at line 743 of file pars0pars.h.
| #define PARS_FUNC_ARITH 1 |
Classes of functions +, -, *, /
Definition at line 739 of file pars0pars.h.
| #define PARS_FUNC_CMP 3 |
comparison operators
Definition at line 741 of file pars0pars.h.
| #define PARS_FUNC_LOGICAL 2 |
AND, OR, NOT
Definition at line 740 of file pars0pars.h.
| #define PARS_FUNC_OTHER 6 |
these are not real functions, e.g., :=
Definition at line 744 of file pars0pars.h.
| #define PARS_FUNC_PREDEFINED 4 |
TO_NUMBER, SUBSTR, ...
Definition at line 742 of file pars0pars.h.
| #define PARS_INPUT 0 |
Definition at line 92 of file pars0pars.h.
| #define PARS_NOT_PARAM 2 |
Definition at line 94 of file pars0pars.h.
| #define PARS_OUTPUT 1 |
Definition at line 93 of file pars0pars.h.
| typedef void *(* pars_user_func_cb_t) (void *arg, void *user_arg) |
Type of the user functions. The first argument is always InnoDB-supplied and varies in type, while 'user_arg' is a user-supplied argument. The meaning of the return type also varies. See the individual use cases, e.g. the FETCH statement, for details on them.
Definition at line 42 of file pars0pars.h.
| UNIV_INTERN assign_node_t * pars_assignment_statement | ( | sym_node_t * | var, |
| que_node_t * | val ) |
Parses an assignment statement.
Parses an assignment statement.
| var | in: variable to assign |
| val | in: value to assign |
Definition at line 1403 of file pars0pars.cc.
| UNIV_INTERN col_assign_node_t * pars_column_assignment | ( | sym_node_t * | column, |
| que_node_t * | exp ) |
Parses a column assignment in an update.
Parses a column assignment in an update.
| column | in: column to assign |
| exp | in: value to assign |
Definition at line 862 of file pars0pars.cc.
| UNIV_INTERN sym_node_t * pars_column_def | ( | sym_node_t * | sym_node, |
| pars_res_word_t * | type, | ||
| sym_node_t * | len, | ||
| void * | is_unsigned, | ||
| void * | is_not_null ) |
Parses a column definition at a table creation.
Parses a column definition at a table creation.
| sym_node | in: column node in the symbol table |
| type | in: data type |
| len | in: length of column, or NULL |
| is_unsigned | in: if not NULL, column is of type UNSIGNED. |
| is_not_null | in: if not NULL, column is of type NOT NULL. |
Definition at line 1576 of file pars0pars.cc.
| UNIV_INTERN commit_node_t * pars_commit_statement | ( | void | ) |
Parses a commit statement.
Definition at line 1554 of file pars0pars.cc.
| UNIV_INTERN que_thr_t * pars_complete_graph_for_exec | ( | que_node_t * | node, |
| trx_t * | trx, | ||
| mem_heap_t * | heap ) |
Completes a query graph by adding query thread and fork nodes above it and prepares the graph for running. The fork created is of type QUE_FORK_MYSQL_INTERFACE.
Completes a query graph by adding query thread and fork nodes above it and prepares the graph for running. The fork created is of type QUE_FORK_MYSQL_INTERFACE.
| node | in: root node for an incomplete query graph |
| trx | in: transaction handle |
| heap | in: memory heap from which allocated |
Definition at line 1908 of file pars0pars.cc.
| UNIV_INTERN ind_node_t * pars_create_index | ( | pars_res_word_t * | unique_def, |
| pars_res_word_t * | clustered_def, | ||
| sym_node_t * | index_sym, | ||
| sym_node_t * | table_sym, | ||
| sym_node_t * | column_list ) |
Parses an index creation operation.
Parses an index creation operation.
| unique_def | in: not NULL if a unique index |
| clustered_def | in: not NULL if a clustered index |
| index_sym | in: index name node in the symbol table |
| table_sym | in: table name node in the symbol table |
| column_list | in: list of column names |
Definition at line 1669 of file pars0pars.cc.
| UNIV_INTERN tab_node_t * pars_create_table | ( | sym_node_t * | table_sym, |
| sym_node_t * | column_defs, | ||
| void * | not_fit_in_memory ) |
Parses a table creation operation.
Parses a table creation operation.
| table_sym | in: table name node in the symbol table |
| column_defs | in: list of column names |
| not_fit_in_memory | in: a non-NULL pointer means that this is a table which in simulations should be simulated as not fitting in memory; thread is put to sleep to simulate disk accesses; NOTE that this flag is not stored to the data dictionary on disk, and the database will forget about non-NULL value if it has to reload the table definition from disk |
Definition at line 1607 of file pars0pars.cc.
| UNIV_INTERN que_node_t * pars_cursor_declaration | ( | sym_node_t * | sym_node, |
| sel_node_t * | select_node ) |
Parses a cursor declaration.
Parses a cursor declaration.
| sym_node | in: cursor id node in the symbol table |
| select_node | in: select node |
Definition at line 797 of file pars0pars.cc.
| UNIV_INTERN elsif_node_t * pars_elsif_element | ( | que_node_t * | cond, |
| que_node_t * | stat_list ) |
Parses an elsif element.
Parses an elsif element.
| cond | in: if-condition |
| stat_list | in: statement list |
Definition at line 1231 of file pars0pars.cc.
| UNIV_INTERN exit_node_t * pars_exit_statement | ( | void | ) |
| UNIV_INTERN fetch_node_t * pars_fetch_statement | ( | sym_node_t * | cursor, |
| sym_node_t * | into_list, | ||
| sym_node_t * | user_func ) |
Parses a fetch statement. into_list or user_func (but not both) must be non-NULL.
Parses a fetch statement. into_list or user_func (but not both) must be non-NULL.
| cursor | in: cursor node |
| into_list | in: variables to set, or NULL |
| user_func | in: user function name, or NULL |
Definition at line 1451 of file pars0pars.cc.
| UNIV_INTERN for_node_t * pars_for_statement | ( | sym_node_t * | loop_var, |
| que_node_t * | loop_start_limit, | ||
| que_node_t * | loop_end_limit, | ||
| que_node_t * | stat_list ) |
Parses a for-loop-statement.
Parses a for-loop-statement.
| loop_var | in: loop variable |
| loop_start_limit | in: loop start expression |
| loop_end_limit | in: loop end expression |
| stat_list | in: statement list |
Definition at line 1334 of file pars0pars.cc.
| UNIV_INTERN func_node_t * pars_func | ( | que_node_t * | res_word, |
| que_node_t * | arg ) |
Parses a function expression.
Parses a function expression.
| res_word | in: function name reserved word |
| arg | in: first argument in the argument list |
Definition at line 180 of file pars0pars.cc.
| UNIV_INTERN que_node_t * pars_function_declaration | ( | sym_node_t * | sym_node | ) |
Parses a function declaration.
Parses a function declaration.
| sym_node | in: function id node in the symbol table |
Definition at line 818 of file pars0pars.cc.
| UNIV_INTERN void pars_get_lex_chars | ( | char * | buf, |
| int * | result, | ||
| int | max_size ) |
Retrieves characters to the lexical analyzer. in: maximum number of characters which fit in the buffer
Retrieves characters to the lexical analyzer.
| buf | in/out: buffer where to copy |
| result | out: number of characters copied or EOF |
| max_size | in: maximum number of characters which fit in the buffer |
Definition at line 1792 of file pars0pars.cc.
| UNIV_INTERN if_node_t * pars_if_statement | ( | que_node_t * | cond, |
| que_node_t * | stat_list, | ||
| que_node_t * | else_part ) |
Parses an if-statement.
Parses an if-statement.
| cond | in: if-condition |
| stat_list | in: statement list |
| else_part | in: else-part statement list or elsif element list |
Definition at line 1256 of file pars0pars.cc.
| UNIV_INTERN void pars_info_add_function | ( | pars_info_t * | info, |
| const char * | name, | ||
| pars_user_func_cb_t | func, | ||
| void * | arg ) |
Add user function. in: user-supplied argument
Add user function.
| info | in: info struct |
| name | in: function name |
| func | in: function address |
| arg | in: user-supplied argument |
Definition at line 2066 of file pars0pars.cc.
| UNIV_INTERN void pars_info_add_id | ( | pars_info_t * | info, |
| const char * | name, | ||
| const char * | id ) |
Add bound id. in: id
Add bound id.
| info | in: info struct |
| name | in: name |
| id | in: id |
Definition at line 2094 of file pars0pars.cc.
| UNIV_INTERN void pars_info_add_int4_literal | ( | pars_info_t * | info, |
| const char * | name, | ||
| lint | val ) |
Equivalent to:
char buf[4]; mach_write_to_4(buf, val); pars_info_add_literal(info, name, buf, 4, DATA_INT, 0);
except that the buffer is dynamically allocated from the info struct's heap. in: value
Equivalent to:
char buf[4]; mach_write_to_4(buf, val); pars_info_add_literal(info, name, buf, 4, DATA_INT, 0);
except that the buffer is dynamically allocated from the info struct's heap.
| info | in: info struct |
| name | in: name |
| val | in: value |
Definition at line 2026 of file pars0pars.cc.
| UNIV_INTERN void pars_info_add_literal | ( | pars_info_t * | info, |
| const char * | name, | ||
| const void * | address, | ||
| ulint | length, | ||
| ulint | type, | ||
| ulint | prtype ) |
Add bound literal. in: precise type, e.g. DATA_UNSIGNED
Add bound literal.
| info | in: info struct |
| name | in: name |
| address | in: address |
| length | in: length of data |
| type | in: type, e.g. DATA_FIXBINARY |
| prtype | in: precise type, e.g. DATA_UNSIGNED |
Definition at line 1971 of file pars0pars.cc.
| UNIV_INTERN void pars_info_add_str_literal | ( | pars_info_t * | info, |
| const char * | name, | ||
| const char * | str ) |
Equivalent to pars_info_add_literal(info, name, str, strlen(str), DATA_VARCHAR, DATA_ENGLISH). in: string
Equivalent to pars_info_add_literal(info, name, str, strlen(str), DATA_VARCHAR, DATA_ENGLISH).
| info | in: info struct |
| name | in: name |
| str | in: string |
Definition at line 2005 of file pars0pars.cc.
| UNIV_INTERN void pars_info_add_ull_literal | ( | pars_info_t * | info, |
| const char * | name, | ||
| ib_uint64_t | val ) |
Equivalent to:
char buf[8]; mach_write_to_8(buf, val); pars_info_add_literal(info, name, buf, 8, DATA_FIXBINARY, 0);
except that the buffer is dynamically allocated from the info struct's heap. in: value
Equivalent to:
char buf[8]; mach_write_to_8(buf, val); pars_info_add_literal(info, name, buf, 8, DATA_FIXBINARY, 0);
except that the buffer is dynamically allocated from the info struct's heap.
| info | in: info struct |
| name | in: name |
| val | in: value |
Definition at line 2049 of file pars0pars.cc.
| UNIV_INTERN pars_info_t * pars_info_create | ( | void | ) |
| UNIV_INTERN void pars_info_free | ( | pars_info_t * | info | ) |
Free info struct and everything it contains. in, own: info struct
Free info struct and everything it contains.
| info | in, own: info struct |
Definition at line 1960 of file pars0pars.cc.
| UNIV_INTERN pars_bound_id_t * pars_info_get_bound_id | ( | pars_info_t * | info, |
| const char * | name ) |
Get bound id with the given name.
Get bound id with the given name.
| info | in: info struct |
| name | in: bound id name to find |
Definition at line 2181 of file pars0pars.cc.
| UNIV_INTERN pars_bound_lit_t * pars_info_get_bound_lit | ( | pars_info_t * | info, |
| const char * | name ) |
Get bound literal with the given name.
Get bound literal with the given name.
| info | in: info struct |
| name | in: bound literal name to find |
Definition at line 2151 of file pars0pars.cc.
| UNIV_INTERN pars_user_func_t * pars_info_get_user_func | ( | pars_info_t * | info, |
| const char * | name ) |
Get user function with the given name.
Get user function with the given name.
| info | in: info struct |
| name | in: function name to find |
Definition at line 2121 of file pars0pars.cc.
| UNIV_INTERN ins_node_t * pars_insert_statement | ( | sym_node_t * | table_sym, |
| que_node_t * | values_list, | ||
| sel_node_t * | select ) |
Parses an insert statement.
Parses an insert statement.
| table_sym | in: table name node |
| values_list | in: value expression list or NULL |
| select | in: select condition or NULL |
Definition at line 1057 of file pars0pars.cc.
| UNIV_INTERN void pars_lexer_close | ( | void | ) |
Release any resources used by the lexer.
Definition at line 672 of file pars0lex.l.
| UNIV_INTERN func_node_t * pars_op | ( | int | func, |
| que_node_t * | arg1, | ||
| que_node_t * | arg2 ) |
Parses an operator expression.
Parses an operator expression.
| func | in: operator token code |
| arg1 | in: first argument |
| arg2 | in: second argument or NULL for an unary operator |
Definition at line 193 of file pars0pars.cc.
| UNIV_INTERN open_node_t * pars_open_statement | ( | ulint | type, |
| sym_node_t * | cursor ) |
Parses an open or close cursor statement.
Parses an open or close cursor statement.
| type | in: ROW_SEL_OPEN_CURSOR or ROW_SEL_CLOSE_CURSOR |
| cursor | in: cursor node |
Definition at line 1502 of file pars0pars.cc.
| UNIV_INTERN order_node_t * pars_order_by | ( | sym_node_t * | column, |
| pars_res_word_t * | asc ) |
Parses an ORDER BY clause. Order by a single column only is supported.
Parses an ORDER BY clause. Order by a single column only is supported.
| column | in: column name |
| asc | in: &pars_asc_token or pars_desc_token |
Definition at line 214 of file pars0pars.cc.
| UNIV_INTERN sym_node_t * pars_parameter_declaration | ( | sym_node_t * | node, |
| ulint | param_type, | ||
| pars_res_word_t * | type ) |
Parses a procedure parameter declaration.
Parses a procedure parameter declaration.
| node | in: symbol table node allocated for the id of the parameter |
| param_type | in: PARS_INPUT or PARS_OUTPUT |
| type | in: pointer to a type token |
Definition at line 1188 of file pars0pars.cc.
| UNIV_INTERN func_node_t * pars_procedure_call | ( | que_node_t * | res_word, |
| que_node_t * | args ) |
Parses a procedure call.
Parses a procedure call.
| res_word | in: procedure name reserved word |
| args | in: argument list |
Definition at line 1431 of file pars0pars.cc.
| UNIV_INTERN que_fork_t * pars_procedure_definition | ( | sym_node_t * | sym_node, |
| sym_node_t * | param_list, | ||
| que_node_t * | stat_list ) |
Parses a procedure definition.
Parses a procedure definition.
| sym_node | in: procedure id node in the symbol table |
| param_list | in: parameter declaration list |
| stat_list | in: statement list |
Definition at line 1726 of file pars0pars.cc.
| UNIV_INTERN return_node_t * pars_return_statement | ( | void | ) |
Parses a return-statement.
Definition at line 1386 of file pars0pars.cc.
| UNIV_INTERN roll_node_t * pars_rollback_statement | ( | void | ) |
Parses a rollback statement.
Definition at line 1565 of file pars0pars.cc.
| UNIV_INTERN row_printf_node_t * pars_row_printf_statement | ( | sel_node_t * | sel_node | ) |
Parses a row_printf-statement.
Parses a row_printf-statement.
| sel_node | in: select node |
Definition at line 1532 of file pars0pars.cc.
| UNIV_INTERN sel_node_t * pars_select_list | ( | que_node_t * | select_list, |
| sym_node_t * | into_list ) |
Parses a select list; creates a query graph node for the whole SELECT statement.
Parses a select list; creates a query graph node for the whole SELECT statement.
| select_list | in: select list |
| into_list | in: variables list or NULL |
Definition at line 649 of file pars0pars.cc.
| UNIV_INTERN sel_node_t * pars_select_statement | ( | sel_node_t * | select_node, |
| sym_node_t * | table_list, | ||
| que_node_t * | search_cond, | ||
| pars_res_word_t * | for_update, | ||
| pars_res_word_t * | lock_shared, | ||
| order_node_t * | order_by ) |
Parses a select statement.
Parses a select statement.
| select_node | in: select node already containing the select list |
| table_list | in: table list |
| search_cond | in: search condition or NULL |
| for_update | in: NULL or &pars_update_token |
| lock_shared | in: NULL or &pars_share_token |
| order_by | in: NULL or an order-by node |
Definition at line 714 of file pars0pars.cc.
| UNIV_INTERN que_t * pars_sql | ( | pars_info_t * | info, |
| const char * | str ) |
Parses an SQL string returning the query graph.
Parses an SQL string returning the query graph.
| info | in: extra information, or NULL |
| str | in: SQL string |
Definition at line 1857 of file pars0pars.cc.
| UNIV_INTERN que_fork_t * pars_stored_procedure_call | ( | sym_node_t * | sym_node | ) |
Parses a stored procedure call, when this is not within another stored procedure, that is, the client issues a procedure call directly. In MySQL/InnoDB, stored InnoDB procedures are invoked via the parsed procedure tree, not via InnoDB SQL, so this function is not used.
Parses a stored procedure call, when this is not within another stored procedure, that is, the client issues a procedure call directly. In MySQL/InnoDB, stored InnoDB procedures are invoked via the parsed procedure tree, not via InnoDB SQL, so this function is not used.
| sym_node | in: stored procedure name |
Definition at line 1776 of file pars0pars.cc.
| UNIV_INTERN upd_node_t * pars_update_statement | ( | upd_node_t * | node, |
| sym_node_t * | cursor_sym, | ||
| que_node_t * | search_cond ) |
Parses an update or delete statement.
Parses an update or delete statement.
| node | in: update node |
| cursor_sym | in: pointer to a cursor entry in the symbol table or NULL |
| search_cond | in: search condition or NULL |
Definition at line 971 of file pars0pars.cc.
| UNIV_INTERN upd_node_t * pars_update_statement_start | ( | ibool | is_delete, |
| sym_node_t * | table_sym, | ||
| col_assign_node_t * | col_assign_list ) |
Parses a delete or update statement start.
Parses a delete or update statement start.
| is_delete | in: TRUE if delete |
| table_sym | in: table name node |
| col_assign_list | in: column assignment list, NULL if delete |
Definition at line 838 of file pars0pars.cc.
| UNIV_INTERN sym_node_t * pars_variable_declaration | ( | sym_node_t * | node, |
| pars_res_word_t * | type ) |
Parses a variable declaration.
Parses a variable declaration.
| node | in: symbol table node allocated for the id of the variable |
| type | in: pointer to a type token |
Definition at line 1167 of file pars0pars.cc.
| UNIV_INTERN while_node_t * pars_while_statement | ( | que_node_t * | cond, |
| que_node_t * | stat_list ) |
Parses a while-statement.
Parses a while-statement.
| cond | in: while-condition |
| stat_list | in: statement list |
Definition at line 1307 of file pars0pars.cc.
| UNIV_INTERN void yyerror | ( | const char * | s | ) |
Called by yyparse on error. in: error message string
Called by yyparse on error.
| s | in: error message string |
Definition at line 1840 of file pars0pars.cc.
|
extern |
Definition at line 89 of file pars0pars.cc.
|
extern |
Definition at line 77 of file pars0pars.cc.
|
extern |
Definition at line 69 of file pars0pars.cc.
|
extern |
Definition at line 83 of file pars0pars.cc.
|
extern |
Definition at line 84 of file pars0pars.cc.
|
extern |
Definition at line 86 of file pars0pars.cc.
|
extern |
Definition at line 92 of file pars0pars.cc.
|
extern |
Definition at line 95 of file pars0pars.cc.
|
extern |
Definition at line 72 of file pars0pars.cc.
|
extern |
Definition at line 80 of file pars0pars.cc.
|
extern |
Definition at line 90 of file pars0pars.cc.
|
extern |
Definition at line 82 of file pars0pars.cc.
|
extern |
Definition at line 87 of file pars0pars.cc.
|
extern |
Definition at line 73 of file pars0pars.cc.
|
extern |
Definition at line 85 of file pars0pars.cc.
|
extern |
Definition at line 74 of file pars0pars.cc.
|
extern |
Definition at line 91 of file pars0pars.cc.
|
extern |
Definition at line 76 of file pars0pars.cc.
|
extern |
Definition at line 71 of file pars0pars.cc.
|
extern |
Definition at line 79 of file pars0pars.cc.
|
extern |
Definition at line 78 of file pars0pars.cc.
|
extern |
Definition at line 93 of file pars0pars.cc.
|
extern |
Global variable used to denote the '*' in SELECT * FROM..
Definition at line 98 of file pars0pars.cc.
|
extern |
Definition at line 70 of file pars0pars.cc.
|
extern |
Definition at line 81 of file pars0pars.cc.
|
extern |
Definition at line 61 of file pars0pars.cc.
|
extern |
Definition at line 75 of file pars0pars.cc.
|
extern |
Definition at line 68 of file pars0pars.cc.
|
extern |
Definition at line 66 of file pars0pars.cc.
|
extern |
Definition at line 67 of file pars0pars.cc.
|
extern |
Definition at line 94 of file pars0pars.cc.
|
extern |
Definition at line 88 of file pars0pars.cc.
|
extern |
If the following is set TRUE, the parser will emit debugging information