Re: EXECUTE with a prepared plan and NULL - Mailing list pgsql-sql

From Tom Lane
Subject Re: EXECUTE with a prepared plan and NULL
Date
Msg-id 888.1231110285@sss.pgh.pa.us
Whole thread Raw
In response to EXECUTE with a prepared plan and NULL  ("sergey kapustin" <kapustin.sergey@gmail.com>)
List pgsql-sql
"sergey kapustin" <kapustin.sergey@gmail.com> writes:
> The thing is, that if i one of the parameters is NULL, then string s becomes
> NULL also ( because NULL||"any string" = NULL) and as a result i get this
> error -
> ERROR:  cannot EXECUTE a null querystring

quote_nullable() might help.
        regards, tom lane


pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How to excute dynamically a generated SQL command?
Next
From: Chris Browne
Date:
Subject: Re: Any utility to convert MySQL to PGSQL?