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

Function par_page_size

src/gpre/sql.cpp:6066–6087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6064//
6065
6066static int par_page_size()
6067{
6068 MSC_match(KW_EQUALS);
6069 const int n1 = EXP_USHORT_ordinal(false);
6070 int n2 = n1;
6071
6072 if (n1 <= 1024)
6073 n2 = 1024;
6074 else if (n1 <= 2048)
6075 n2 = 2048;
6076 else if (n1 <= 4096)
6077 n2 = 4096;
6078 else if (n1 <= 8192)
6079 n2 = 8192;
6080 else if (n1 <= 16384)
6081 n2 = 16384;
6082 else
6083 CPR_s_error("<page size> in range 1024 to 16384");
6084 PAR_get_token();
6085
6086 return n2;
6087}
6088
6089
6090//____________________________________________________________

Callers 1

tail_databaseFunction · 0.85

Calls 4

MSC_matchFunction · 0.85
EXP_USHORT_ordinalFunction · 0.85
CPR_s_errorFunction · 0.85
PAR_get_tokenFunction · 0.85

Tested by

no test coverage detected