From: Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
To: pgsql-general@postgresql.org
Date: Mon, 14 Mar 2005 05:06:16 -0800 (PST)
Message-ID: <32849.81.91.153.7.1110805598.squirrel@81.91.153.7> (raw)
Dears,
When i wanna insert to my following code,I receive following error:
Insert into c(t) values('ccccccc'); --> It's my qurey.
Insert command failed!So i can't continue to insert in your table!
ERROR: pg_atoi: error in "ccccccc": can't parse "ccccccc"
my code :
pres = PQexec(pobj->connection2db, ins.c_str());
ins="";
if (!pres || PQresultStatus(pres) != PGRES_COMMAND_OK)
{
fprintf(stderr, "Insert command failed!So i can't continue to insert
in your table!\n");
cout << PQerrorMessage(pobj->connection2db);
pobj->exit_nicely(pobj->connection2db);
}
PQclear(pres);
When i print ins.c_str(),I see following statement:
Insert into z(e) values('10z');
It's true,But i recieve same error.
Please help me..............
--Mohsen
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: mohsen@pahlevanzadeh.org
Subject: Re:
In-Reply-To: <32849.81.91.153.7.1110805598.squirrel@81.91.153.7>
References: <32849.81.91.153.7.1110805598.squirrel@81.91.153.7>
* 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