Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCFbt-0006kN-Q4 for pgsql-interfaces@arkaria.postgresql.org; Wed, 21 Aug 2013 21:06:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCFbt-0006kU-9u for pgsql-interfaces@arkaria.postgresql.org; Wed, 21 Aug 2013 21:06:33 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCFbs-0006kL-Gd for pgsql-interfaces@postgresql.org; Wed, 21 Aug 2013 21:06:32 +0000 Received: from brama.com ([208.67.225.160]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCFbo-0007oE-FV for pgsql-interfaces@postgresql.org; Wed, 21 Aug 2013 21:06:30 +0000 Received: from brama.com (localhost [127.0.0.1]) by brama.com (8.14.4/8.14.4) with ESMTP id r7LL6QTr003659 for ; Wed, 21 Aug 2013 17:06:26 -0400 Received: from localhost (pyz@localhost) by brama.com (8.14.4/8.14.4/Submit) with ESMTP id r7LL6Qda003654 for ; Wed, 21 Aug 2013 17:06:26 -0400 Date: Wed, 21 Aug 2013 17:06:26 -0400 (EDT) From: Max Pyziur To: pgsql-interfaces@postgresql.org Subject: binding a variable to NULL in perl-DBD Message-ID: User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org Greetings, I'm trying to determine how to pass "NULL" to a variable, specifically in the conditional section of a SQL statement: SELECT moo FROM foo aa WHERE field1 = ? AND field2 = ? Sometimes at the command line, when running the perl-DBD script, I would like the select statement to reflect: SELECT moo FROM foo aa WHERE field1 = 'goo' AND field2 IS NULL Much thanks in advance, Max Pyziur pyz@brama.com -- Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces