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

Function getBlrVersion

src/jrd/par.cpp:1706–1725  ·  view source on GitHub ↗

Get the BLR version from the CSB stream and complain if it's unknown.

Source from the content-addressed store, hash-verified

1704
1705// Get the BLR version from the CSB stream and complain if it's unknown.
1706static void getBlrVersion(CompilerScratch* csb)
1707{
1708 const SSHORT version = csb->csb_blr_reader.getByte();
1709 switch (version)
1710 {
1711 case blr_version4:
1712 csb->blrVersion = 4;
1713 break;
1714 case blr_version5:
1715 csb->blrVersion = 5;
1716 break;
1717 //case blr_version6:
1718 // csb->blrVersion = 6;
1719 // break;
1720 default:
1721 PAR_error(csb, Arg::Gds(isc_metadata_corrupt) <<
1722 Arg::Gds(isc_wroblrver2) << Arg::Num(blr_version4) << Arg::Num(blr_version5/*6*/) <<
1723 Arg::Num(version));
1724 }
1725}
1726
1727
1728// Parse subroutines.

Callers 3

PAR_blrFunction · 0.85
PAR_validation_blrFunction · 0.85
PAR_parseFunction · 0.85

Calls 4

GdsClass · 0.85
NumClass · 0.85
PAR_errorFunction · 0.70
getByteMethod · 0.45

Tested by

no test coverage detected