Received: from druid.net (root@druid.net [216.126.72.98]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA52156 for ; Thu, 23 Dec 1999 09:41:35 -0500 (EST) (envelope-from darcy@druid.net) Received: from localhost (1683 bytes) by druid.net via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Thu, 23 Dec 1999 09:41:31 -0500 (EST) (Smail-3.2.0.104 1998-Nov-20 #4 built 1999-Apr-13) Message-Id: Subject: Re: [INTERFACES] Ghost insert In-Reply-To: <3861E550.8ED9448@xpress.es> from Enrique Rodriguez Lazaro at "Dec 23, 1999 10:03:12 am" To: enrique@xpress.es (Enrique Rodriguez Lazaro) Date: Thu, 23 Dec 1999 09:41:30 -0500 (EST) From: "D'Arcy" "J.M." Cain Cc: pgsql-interfaces@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL50 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Thus spake Enrique Rodriguez Lazaro > Hi. > > I am trying to do a interface from a web over my database postgresql > whit libpq. > > I can't do a simple 'insert' from libpq. Just guessing here but is it possible that clientes is a view and you are seeing the underlying table when you select after the insert? In PostgreSQL, views are real tables. They just have an implied rule on select that gets data from a SELECT statement instead of the named table. See the following URL for more details. http://www.postgresql.org/docs/programmer/rules890.htm > I'm doing this: > > sprintf(temp_string,"insert into clientes > values('fff','prueba','123','123','pepe gotera','jjjjjj','jjj')"); > > res1=PQexec(conn,temp_string); > tuplas=PQresultStatus(res1); If the above is not your problem then you might also try PQoidStatus(res1) to see what the resulting OID is. -- D'Arcy J.M. Cain | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.