"Generated Always" allowing non numeric data to be saved in number column
I am working on an integration project - I happened to notice "Generated Always" in table creation allows non numeric value to be saved in a NUMBER column though it is no longer possible to query the records afterwards. The fix is to to include a validation in the PL/SQL package that is inserting data into the table, but I would like to know if this a bug or any explanation is available why this is be allowed.
----------------------------------------
SQL*Plus: Release 10.1.0.5.0 - Production on Thu Jan 11 12:18:04 2024
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 12c EE Extreme Perf Release 12.1.0.2.0 - 64bit Production