Re: [BUGS] BUG #2954: null is not checked against domain constraints in return clause

2007-02-01 Thread Tom Lane
Sergiy Vyshnevetskiy <[EMAIL PROTECTED]> writes: > I believe the bug to be here: >/* Normal case for scalar results */ >estate->retval = exec_eval_expr(estate, stmt->expr, >&(estate->retisnull), >&(estate->rettype)); > in exec_stmt_re

Re: [BUGS] BUG #2954: null is not checked against domain constraints in return clause

2007-02-01 Thread Sergiy Vyshnevetskiy
I believe the bug to be here: /* Normal case for scalar results */ estate->retval = exec_eval_expr(estate, stmt->expr, &(estate->retisnull), &(estate->rettype)); in exec_stmt_return() in pl_exec.c. As I understand it, exec_eval_expr overwr

[BUGS] BUG #2954: null is not checked against domain constraints in return clause

2007-02-01 Thread Sergiy Vyshnevetskiy
The following bug has been logged online: Bug reference: 2954 Logged by: Sergiy Vyshnevetskiy Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.1 Operating system: FreeBSD-6 stable Description:null is not checked against domain constraints in return clause Deta