v.20.4New Feature

Added isConstant function for checking constant expressions

Added function isConstant. This function checks whether its argument is constant expression and returns 1 or 0. It is intended for development, debugging and demonstration purposes. #10198 (alexey-milovidov)
Added the isConstant function that checks if its argument is a constant expression and returns 1 if true, otherwise 0.

Why it matters

This feature helps users and developers verify whether a given expression is constant, aiding in development, debugging, and demonstration by providing insight into expression evaluation.

How to use it

Use the function by passing any expression as an argument to isConstant. It will return 1 if the expression is constant and 0 otherwise, for example: SELECT isConstant(123) returns 1.