Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 95732 invoked from network); 2 Feb 2005 14:12:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Feb 2005 14:12:30 -0000 Received: (qmail 93189 invoked by uid 500); 2 Feb 2005 14:12:27 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 93163 invoked by uid 500); 2 Feb 2005 14:12:26 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 93143 invoked by uid 99); 2 Feb 2005 14:12:26 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.telenet-ag.de (HELO mail.telenet-ag.de) (213.188.99.162) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 06:12:25 -0800 Received: from notes.ip3k.de (notes.ip3k.de [193.96.234.114]) by mail.telenet-ag.de (8.12.8/8.12.8) with ESMTP id j12ECKI4012461 for ; Wed, 2 Feb 2005 15:12:20 +0100 To: torque-user@db.apache.org Subject: Prepared Statements with Oracle MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: From: a.winter@telenet-ag.de Date: Wed, 2 Feb 2005 15:12:19 +0100 X-MIMETrack: Serialize by Router on notes-rhm-1/telenet-ag/de(Release 5.0.11 |July 24, 2002) at 02.02.2005 15:12:20, Serialize complete at 02.02.2005 15:12:20 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi torque-users, I want to use prepard statements with an oracle database. When executing a doPSSelect query Criteria crit = new Criteria(); recordList = UsersPeer.doPSSelect(crit); list = new UsersList((List)UsersPeer.populateObjects(recordList)); I get the following exception: +------------------ | | Nested Exception: org.apache.torque.TorqueException | | Message: java.sql.SQLException: ORA-00936: missing expression | | Stack trace: org.apache.torque.TorqueException: java.sql.SQLException: ORA-00936: missing expression at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:236) at org.apache.torque.util.BasePeer.doPSSelect(BasePeer.java:2208) Using the doSelect-Method list = UsersPeer.doSelect(crit); works fine. Is there a bug in torque or is there something wrong in my code ? My second question is, how I can insert or update records using prepared statements. I was looking for a method like doPSInsert or doPSUpdate but there aren't such methods. I still saw those threads where the problems with Oracle and prepared statements are described. Does anyone used prepared statements with an Oracle database successfully ? Thanks a lot, Arndt --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org