Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 12719 invoked from network); 26 Aug 2005 20:38:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Aug 2005 20:38:52 -0000 Received: (qmail 17371 invoked by uid 500); 26 Aug 2005 20:38:52 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 17124 invoked by uid 500); 26 Aug 2005 20:38:51 -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 17111 invoked by uid 99); 26 Aug 2005 20:38:50 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 26 Aug 2005 13:38:50 -0700 Received: (qmail 12713 invoked by uid 1977); 26 Aug 2005 20:38:50 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Aug 2005 20:38:50 -0000 Date: Fri, 26 Aug 2005 13:38:50 -0700 (PDT) From: Thomas Fischer To: torque-user@db.apache.org cc: james_long@provima.com Subject: Re: getDate() Message-ID: <20050826133044.C7984@minotaur.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Rating: localhost 1.6.2 0/1000/N X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have created an issue on that, just that it is not forgotten. See http://issues.apache.org/scarab/issues/id/TRQS319 However, I am afraid that it probably will not make into 3.2 on itself. Thomas Trey Long wrote > I agree with that conclusion, with certain functions such as getDate() > it wouldn't be valid until insert. At that point the object could pull > back the correct information. > > In that case the only real solution is to allow torque to gracefully > handle default formula's and let the database do it's job. As far as > using the object before-hand though I don't know how that would be > handled, perhaps some method to indicate whether... I have no idea. At > this point, this it totally in your realm :) > > > Thomas Fischer wrote: > >> >> >> I do not see any possibility that the object could handle a database >> function on construction. The object would have to ask the database to >> execute the function, and this process is different on different >> databases. >> On Oracle, for example, one would have to do something like (Select >> getDate() from dual), and this would certainly not work on any other >> database. >> >> The only possibility I see at the moment is to refresh the object from >> the >> db and then get the inserted value. >> >> Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org