The default value for a column in SQL is set using the DEFAULT keyword.
The expression following this keyword will be evaluated as the default
value or a function that evaluates to that value. If the expression is
a literal, it will be evaluated as a value. Also, if the expression is
a unary + or - and the following literal is of type INTEGER,
DOUBLE, or DECIMAL, it will also be evaluated as a value.
Otherwise, it will be evaluated as a function.
Requested by @ImeevMA in tarantool/tarantool@78e0faa.
The default value for a column in SQL is set using the DEFAULT keyword.
The expression following this keyword will be evaluated as the default
value or a function that evaluates to that value. If the expression is
a literal, it will be evaluated as a value. Also, if the expression is
a unary
+or-and the following literal is of type INTEGER,DOUBLE, or DECIMAL, it will also be evaluated as a value.
Otherwise, it will be evaluated as a function.
Requested by @ImeevMA in tarantool/tarantool@78e0faa.