cvs: pear /MDB2/MDB2 Extended.php /MDB2/docs/examples example_php5.php

From: Date: Mon, 20 Mar 2006 12:26:22 +0000
Subject: cvs: pear /MDB2/MDB2 Extended.php /MDB2/docs/examples example_php5.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39203@lists.php.net to get a copy of this message
lsmith Mon Mar 20 12:26:22 2006 UTC Modified files: /pear/MDB2/docs/examples example_php5.php /pear/MDB2/MDB2 Extended.php Log: - use MDB2_PREPARE_MANIP http://cvs.php.net/viewcvs.cgi/pear/MDB2/docs/examples/example_php5.php?r1=1.6&r2=1.7&diff_format=u Index: pear/MDB2/docs/examples/example_php5.php diff -u pear/MDB2/docs/examples/example_php5.php:1.6 pear/MDB2/docs/examples/example_php5.php:1.7 --- pear/MDB2/docs/examples/example_php5.php:1.6 Fri Mar 17 08:46:29 2006 +++ pear/MDB2/docs/examples/example_php5.php Mon Mar 20 12:26:21 2006 @@ -52,7 +52,7 @@ // 1) the query (notice we are using named parameters, but we could also use ? instead // 2) types of the placeholders (either keyed numerically in order or by name) // 3) true denotes a DML statement -$stmt = $mdb2->prepare($query, array('text', 'date'), true); +$stmt = $mdb2->prepare($query, array('text', 'date'), MDB2_PREPARE_MANIP); // load Date helper class MDB2::loadFile('Date'); http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Extended.php?r1=1.37&r2=1.38&diff_format=u Index: pear/MDB2/MDB2/Extended.php diff -u pear/MDB2/MDB2/Extended.php:1.37 pear/MDB2/MDB2/Extended.php:1.38 --- pear/MDB2/MDB2/Extended.php:1.37 Wed Mar 1 12:15:32 2006 +++ pear/MDB2/MDB2/Extended.php Mon Mar 20 12:26:22 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Extended.php,v 1.37 2006/03/01 12:15:32 lsmith Exp $ +// $Id: Extended.php,v 1.38 2006/03/20 12:26:22 lsmith Exp $ /** * @package MDB2 @@ -92,7 +92,7 @@ return $db; } - return $db->prepare($query, $types, false); + return $db->prepare($query, $types, MDB2_PREPARE_MANIP); } // }}}

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