Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 95096 invoked from network); 12 Nov 2009 16:37:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 16:37:53 -0000 Received: (qmail 56323 invoked by uid 500); 12 Nov 2009 16:37:53 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 56303 invoked by uid 500); 12 Nov 2009 16:37:53 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 56293 invoked by uid 99); 12 Nov 2009 16:37:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 16:37:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.21.160.2] (HELO relay.aitek.it) (194.21.160.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 16:37:45 +0000 Received: from mail-server.aitek.it (mail-server.aitek.it [10.10.1.8]) by relay.aitek.it (8.11.6/Aicnf) with ESMTP id nACGbOn26749 for ; Thu, 12 Nov 2009 17:37:25 +0100 Received: from [10.10.2.34] (priscilla.aitek.it [10.10.2.34]) by mail-server.aitek.it (8.13.1/8.13.1) with ESMTP id nACGbFfp010275 for ; Thu, 12 Nov 2009 17:37:15 +0100 Message-ID: <4AFC39BD.6070005@aitek.it> Date: Thu, 12 Nov 2009 17:37:17 +0100 From: Andrea Bertucci User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: Postgresql table aliases References: <4AF8020E.60204@aitek.it> <55B8568AFA5F144F886F18186BAD5B2C05FA44C760@durham-e2k7mb1.dukece.com> In-Reply-To: <55B8568AFA5F144F886F18186BAD5B2C05FA44C760@durham-e2k7mb1.dukece.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Aitek-MailScanner-Information: Please contact the ISP for more information X-Aitek-MailScanner: Found to be clean X-Aitek-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.4, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-Aitek-MailScanner-From: abertucci@aitek.it X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No Greg Monroe wrote: > I also wonder if this isn't a PostGres version issue. If I remember the > SQL standards correctly, the query that PostGres is choking on is perfectly > valid SQL. PostGres, like MySQL and the like, have all been working to > follow the SQL Standard more closely. This could be a standards bug in > your version of PostGres. > Thank you! Few minutes ago I understand that the problem was a mistake in my code. In some cases I'm composing the update query using column names defined in OM Peer (for some reason I can't use Criteria) and execute query with executeStatement function. In this classes, automatically generated by torque using my schema definition, each column has a prefix that is table name. This has generated the query error, because I obtain query of the form: update a set a.b=c that it's not a right syntax for postgres I correct the problem deleting table prefix in the query generated by hand. Andrea. -- Andrea Bertucci Aitek S.p.A. - Via della Crocetta, 15 - I-16122 Genova tel.: +39 010 846731 fax: +39 010 8467350 - e-mail: abertucci@aitek.it --- Questo messaggio di posta elettronica e gli allegati sono riservati e destinati esclusivamente alle persone cui sono indirizzati. Se avete ricevuto questo messaggio per errore, Vi preghiamo di rispedirlo al mittente o cancellarlo dal Vostro sistema. La pubblicazione, l'uso, la diffusione, l'inoltro, la stampa o la copia non autorizzati di questo messaggio e degli allegati sono vietati. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back. Unauthorized publication, use, disclosure, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org