Re: DB autoExecute, etc. Resetting a column to its default value; is it possible and how?

From: Date: Fri, 07 Oct 2005 16:32:18 +0000
Subject: Re: DB autoExecute, etc. Resetting a column to its default value; is it possible and how?
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-21273@lists.php.net to get a copy of this message
On 10/7/05, Massimiliano Bariola <m.bariola@prodigiweb.it> wrote: > Hi, > > I have been using DB's autoExecute quite happily until now, but now I > have to use DB to create update queries which will reset some columns to > their default values (equivalent to pass the DEFAULT keyword as value in > a mySQL query). > > unfortunately I can't do it via autoExecute as the values get escaped, > and was unable to accomplish it by using combinations of autoPrepare ()/ > execute() statements. > > Is there a way, which maybe I can't find? or go back to hand-create the > query is the only option? > Looks like there's no way to do that with autoExecute. If you need to send special values use a normal query. -- Justin Patrin

« previous php.pear.general (#21273) next »