0H000 Invalid SQLSTATE. constant op constant not folded
0H000 Invalid SQLSTATE. constant op constant not folded
A derived view column evaluates to a numeric constant, and this view column is selected as part of an arithmetic expression involving another numeric constant. For example:
CREATE VIEW view1 (col1) AS SELECT 1 FROM table1;
SELECT col1 * 10 FROM view1;
The error is also generated if a host variable is arithmetically combined with a numeric constant. Note that embedded SQL is a deprecated feature.