From: "Mohsen Pahlevanzadeh" <mohsen(at)pahlevanzadeh(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject:
Date: 2005-03-14 13:06:16
Message-ID: 32849.81.91.153.7.1110805598.squirrel@81.91.153.7
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

  • Re: at 2005-03-14 13:21:24 from Miroslav Šulc

Browse pgsql-general by date

  From Date Subject
Next Message Miroslav Šulc 2005-03-14 13:21:24 Re:
Previous Message Secrétariat 2005-03-14 13:04:42 Localization problems between Access and PostgresSQL 8