pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Enrique Rodriguez Lazaro <enrique@xpress.es>
To: Jan Kim <kim@mpiz-koeln.mpg.de>
Subject: Re: [ADMIN] Ghost insert
Date: Thu, 23 Dec 1999 13:10:18 +0100
Message-ID: <3862112A.654DCF89@xpress.es> (raw)
References: <38611DB0.91825980@xpress.es>
	<19991223123242.E25245@mars.mpiz-koeln.mpg.de>

Jan Kim wrote:
> 
> On Wed, Dec 22, 1999 at 07:51:28PM +0100, Enrique Rodriguez Lazaro wrote:
> > 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.
> >
> > I'm doing this:
> >
> > sprintf(temp_string,"insert into clientes
> > values('fff','prueba','123','123','pepe gotera','jjjjjj','jjj')");
>                                                                  ^
> 
> The semicolon delimiting the SQL clause is missing here. This might
> be the problem.
> 
> While I haven't tried to reproduce the problem at my system, I remember
> that omitting the semicolon in a clause passed to ``psql -c'' may result
> in failure of the clause to produce any effect.
> 
> Greetinx, Jan
> --
>  +- Jan T. Kim -------------------------------------------------------+
>  |             email: kim@mpiz-koeln.mpg.de                           |
>  |             WWW:   http://www.mpiz-koeln.mpg.de/~kim/              |
>  *-----=<  hierarchical systems are for files, not for humans  >=-----*
> 
> ************

Thancs for you answer, but that isn't the problem. In any case, I have
tried puting a semicolon but the result it's the same, the query result
it's OK but the table of my database continue empty.

Another idea.

Thaks again.
-- 
 Enrique Rodríguez Lázaro
  Dpo. Técnico Xpress
 Avd. Pérez Gadós, 13 9º
  Valencia - 46007



view thread (9+ messages)  latest in thread

Message-ID: <3862112A.654DCF89@xpress.es>
Permalink:  ../3862112A.654DCF89@xpress.es/
Also on:    postgresql.org/message-id/3862112A.654DCF89@xpress.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: enrique@xpress.es, kim@mpiz-koeln.mpg.de
  Subject: Re: [ADMIN] Ghost insert
  In-Reply-To: <3862112A.654DCF89@xpress.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox