MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / par_char_set

Function par_char_set

src/gpre/sql.cpp:5654–5672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5652//
5653
5654static SSHORT par_char_set()
5655{
5656 if (!MSC_match(KW_CHAR))
5657 CPR_s_error("CHARACTER SET");
5658
5659 if (!MSC_match(KW_SET))
5660 CPR_s_error("CHARACTER SET");
5661
5662 if (gpreGlob.token_global.tok_type != tok_ident)
5663 CPR_s_error("<character set name>");
5664
5665 gpre_sym* symbol = MSC_find_symbol(gpreGlob.token_global.tok_symbol, SYM_charset);
5666 if (!symbol)
5667 PAR_error("The named CHARACTER SET was not found");
5668
5669 PAR_get_token();
5670
5671 return (((intlsym*) symbol->sym_object)->intlsym_charset_id);
5672}
5673
5674
5675//____________________________________________________________

Callers 1

act_open_blobFunction · 0.85

Calls 5

MSC_matchFunction · 0.85
CPR_s_errorFunction · 0.85
MSC_find_symbolFunction · 0.85
PAR_get_tokenFunction · 0.85
PAR_errorFunction · 0.70

Tested by

no test coverage detected