| 5776 | // |
| 5777 | |
| 5778 | static dyn* par_dynamic_cursor() |
| 5779 | { |
| 5780 | gpre_sym* symbol = NULL; |
| 5781 | |
| 5782 | if (gpreGlob.token_global.tok_symbol == NULL) |
| 5783 | { |
| 5784 | SQL_resolve_identifier("<cursor name>", NULL, MAX_CURSOR_SIZE); |
| 5785 | gpreGlob.token_global.tok_symbol = symbol = HSH_lookup(gpreGlob.token_global.tok_string); |
| 5786 | if (symbol && symbol->sym_type == SYM_keyword) |
| 5787 | gpreGlob.token_global.tok_keyword = (kwwords_t) symbol->sym_keyword; |
| 5788 | else |
| 5789 | gpreGlob.token_global.tok_keyword = KW_none; |
| 5790 | } |
| 5791 | if (symbol = MSC_find_symbol(gpreGlob.token_global.tok_symbol, SYM_dyn_cursor)) |
| 5792 | { |
| 5793 | PAR_get_token(); |
| 5794 | return (dyn*) symbol->sym_object; |
| 5795 | } |
| 5796 | |
| 5797 | return NULL; |
| 5798 | } |
| 5799 | |
| 5800 | |
| 5801 | //____________________________________________________________ |
no test coverage detected