Received: from relay.EECS.Berkeley.EDU (relay.EECS.Berkeley.EDU [169.229.34.228]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA65320; Sun, 16 Apr 2000 14:57:40 -0400 (EDT) (envelope-from mdenny@CS.Berkeley.EDU) Received: from CS.Berkeley.EDU (caracas.CS.Berkeley.EDU [128.32.46.231]) by relay.EECS.Berkeley.EDU (8.9.3/8.9.3) with ESMTP id LAA19413; Sun, 16 Apr 2000 11:57:38 -0700 (PDT) Received: (from mdenny@localhost) by CS.Berkeley.EDU (8.9.3/8.9.3) id LAA29477; Sun, 16 Apr 2000 11:57:38 -0700 (PDT) From: Matthew Denny MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 16 Apr 2000 11:57:38 -0700 (PDT) To: pgsql-interfaces@postgresql.org, pgsql-novice@postgresql.org Subject: a couple of newbie question X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14586.1494.348246.364700@caracas.CS.Berkeley.EDU> X-Archive-Number: 200004/90 I know this question is probably fairly elementary, but I could not find the answer in the docs or mailing list archives. How does one handle NULL values in the embedded SQL interface? For example, if I have a statement: exec sql insert into test_table values(:foo, :x, :y) and foo represents a CHAR attribute (represented by a string in C) that I want to set to NULL, how do I go about doing this? Similarly, how do I tell that a value put into a variable by a fetch call is NULL or not? On a different note, is there any list of error codes for the actual postgreSQL errors, or is the only thing a user can get back is the text message in sqlca.sqlerrm.sqlerrmc (e.g. no associated error #)? Any help would be greatly appreciated. thanks, Matt