X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DA69C56626 for ; Mon, 14 Mar 2005 13:06:38 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08647-05 for ; Mon, 14 Mar 2005 13:06:37 +0000 (GMT) Received: from cpanel.unitedhosts.com (mail.experhosts.com [207.44.134.131]) by svr1.postgresql.org (Postfix) with ESMTP id 50A6C56602 for ; Mon, 14 Mar 2005 13:06:36 +0000 (GMT) Received: from pahleva by cpanel.unitedhosts.com with local (Exim 4.43) id 1DApHK-0007xw-W0 for pgsql-general@postgresql.org; Mon, 14 Mar 2005 05:06:17 -0800 Received: from 81.91.153.7 ([81.91.153.7]) (SquirrelMail authenticated user mohsen@pahlevanzadeh.org); by pahlevanzadeh.org with HTTP; Mon, 14 Mar 2005 05:06:16 -0800 (PST) Message-ID: <32849.81.91.153.7.1110805598.squirrel@81.91.153.7> Date: Mon, 14 Mar 2005 05:06:16 -0800 (PST) Subject: From: "Mohsen Pahlevanzadeh" To: pgsql-general@postgresql.org Reply-To: mohsen@pahlevanzadeh.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.unitedhosts.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [32088 543] / [47 12] X-AntiAbuse: Sender Address Domain - pahlevanzadeh.org X-Source: /usr/local/cpanel/3rdparty/bin/php X-Source-Args: /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/3rdparty/squirrelmail/src/compose.php X-Source-Dir: :/base/3rdparty/squirrelmail/src X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.886 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, MISSING_SUBJECT X-Spam-Level: X-Archive-Number: 200503/599 X-Sequence-Number: 74914 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