cvs: pear /MDB2/MDB2/Driver/Datatype Common.php

From: Date: Tue, 21 Mar 2006 09:38:02 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Datatype Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39218@lists.php.net to get a copy of this message
lsmith Tue Mar 21 09:38:02 2006 UTC Modified files: /pear/MDB2/MDB2/Driver/Datatype Common.php Log: - begun work on allow CURRENT_* in temporal types (bug #6416) http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Datatype/Common.php?r1=1.55&r2=1.56&diff_format=u Index: pear/MDB2/MDB2/Driver/Datatype/Common.php diff -u pear/MDB2/MDB2/Driver/Datatype/Common.php:1.55 pear/MDB2/MDB2/Driver/Datatype/Common.php:1.56 --- pear/MDB2/MDB2/Driver/Datatype/Common.php:1.55 Tue Mar 21 09:20:36 2006 +++ pear/MDB2/MDB2/Driver/Datatype/Common.php Tue Mar 21 09:38:01 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.55 2006/03/21 09:20:36 lsmith Exp $ +// $Id: Common.php,v 1.56 2006/03/21 09:38:01 lsmith Exp $ require_once 'MDB2/LOB.php'; @@ -1151,7 +1151,10 @@ */ function _quoteDate($value, $quote) { - return $this->_quoteText($value, $quote); + if ($value === 'CURRENT_DATE') { + return 'CURRENT_DATE'; + } + return $this->_quoteText($value, $quote); } // }}} @@ -1169,7 +1172,10 @@ */ function _quoteTimestamp($value, $quote) { - return $this->_quoteText($value, $quote); + if ($value === 'CURRENT_TIMESTAMP') { + return 'CURRENT_TIMESTAMP'; + } + return $this->_quoteText($value, $quote); } // }}} @@ -1187,7 +1193,10 @@ */ function _quoteTime($value, $quote) { - return $this->_quoteText($value, $quote); + if ($value === 'CURRENT_TIME') { + return 'CURRENT_TIME'; + } + return $this->_quoteText($value, $quote); } // }}}

« previous php.pear.cvs (#39218) next »