Is DBMS_DB_VERSION.VER_LE_11 useless?
Hi all,
I cannot really see how DBMS_DB_VERSION.VER_LE_11 or any similar constant can be useful. Am I missing something?
"LE" in VER_LE_11 is supposed to stand for "less or equal". It is fine when the version is equal to 11 for the example above, but when it is less than 11, the condition check fails with PLS-00302: component 'VER_LE_11' must be declared . So why is there "less" abbreviated in the constant name if it is unable to check it by design?
I come up to the only working solution is to use VERSION variable everywhere instead: