cvs: pear /MDB2/MDB2/Wrapper peardb.php /MDB2/docs/examples example.php /MDB2/tests MDB2_bugs_testcase.php MDB2_datatype_testcase.php
MDB2_function_testcase.php MDB2_manager_testcase.php MDB2_usage_testcase.php

From: Date: Mon, 20 Mar 2006 12:34:09 +0000
Subject: cvs: pear /MDB2/MDB2/Wrapper peardb.php /MDB2/docs/examples example.php /MDB2/tests MDB2_bugs_testcase.php MDB2_datatype_testcase.php
MDB2_function_testcase.php MDB2_manager_testcase.php MDB2_usage_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39204@lists.php.net to get a copy of this message
lsmith Mon Mar 20 12:34:09 2006 UTC Modified files: /pear/MDB2/docs/examples example.php /pear/MDB2/tests MDB2_bugs_testcase.php MDB2_datatype_testcase.php MDB2_function_testcase.php MDB2_manager_testcase.php MDB2_usage_testcase.php /pear/MDB2/MDB2/Wrapper peardb.php Log: - use MDB2_PREPARE_MANIP

http://cvs.php.net/viewcvs.cgi/pear/MDB2/docs/examples/example.php?r1=1.20&r2=1.21&diff_format=u Index: pear/MDB2/docs/examples/example.php diff -u pear/MDB2/docs/examples/example.php:1.20 pear/MDB2/docs/examples/example.php:1.21 --- pear/MDB2/docs/examples/example.php:1.20 Mon Jan 2 15:54:04 2006 +++ pear/MDB2/docs/examples/example.php Mon Mar 20 12:34:08 2006 @@ -1,6 +1,6 @@ <?php - // $Id: example.php,v 1.20 2006/01/02 15:54:04 lsmith Exp $ + // $Id: example.php,v 1.21 2006/03/20 12:34:08 lsmith Exp $ // // MDB2 and MDB2_Schema example script. // @@ -134,7 +134,7 @@ array(3, 'three', 'trois'), array(4, 'four', 'quatre') ); - $stmt = $mdb2->prepare('INSERT INTO numbers VALUES(?,?,?)', array('integer', 'text', 'text'), false); + $stmt = $mdb2->prepare('INSERT INTO numbers VALUES(?,?,?)', array('integer', 'text', 'text'), MDB2_PREPARE_MANIP); foreach ($alldata as $row) { echo('running execute<br>'); $stmt->bindParamArray($row); http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_bugs_testcase.php?r1=1.26&r2=1.27&diff_format=u Index: pear/MDB2/tests/MDB2_bugs_testcase.php diff -u pear/MDB2/tests/MDB2_bugs_testcase.php:1.26 pear/MDB2/tests/MDB2_bugs_testcase.php:1.27 --- pear/MDB2/tests/MDB2_bugs_testcase.php:1.26 Wed Mar 1 12:15:38 2006 +++ pear/MDB2/tests/MDB2_bugs_testcase.php Mon Mar 20 12:34:08 2006 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_bugs_testcase.php,v 1.26 2006/03/01 12:15:38 lsmith Exp $ +// $Id: MDB2_bugs_testcase.php,v 1.27 2006/03/20 12:34:08 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -52,7 +52,7 @@ function testFetchModeBug() { $data = array(); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $data['user_name'] = 'user_='; $data['user_password'] = 'somepassword'; @@ -121,7 +121,7 @@ $data['access_time'] = MDB2_Date::mdbTime(); $data['approved'] = MDB2_Date::mdbNow(); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $result = $this->db->query('SELECT user_name FROM users'); @@ -165,7 +165,7 @@ $data['access_time'] = MDB2_Date::mdbTime(); $data['approved'] = MDB2_Date::mdbNow(); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $result = $this->db->query('SELECT * FROM users'); @@ -189,7 +189,7 @@ $data['access_time'] = MDB2_Date::mdbTime(); $data['approved'] = MDB2_Date::mdbNow(); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $row = $this->db->queryRow('SELECT a.user_id, b.user_id FROM users a, users b where a.user_id = b.user_id', array('integer', 'integer'), MDB2_FETCHMODE_ORDERED); @@ -205,7 +205,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row]['user_name'] = "user_$row"; @@ -253,7 +253,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row]['user_name'] = "user_$row"; http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_datatype_testcase.php?r1=1.2&r2=1.3&diff_format=u Index: pear/MDB2/tests/MDB2_datatype_testcase.php diff -u pear/MDB2/tests/MDB2_datatype_testcase.php:1.2 pear/MDB2/tests/MDB2_datatype_testcase.php:1.3 --- pear/MDB2/tests/MDB2_datatype_testcase.php:1.2 Wed Mar 1 12:15:38 2006 +++ pear/MDB2/tests/MDB2_datatype_testcase.php Mon Mar 20 12:34:08 2006 @@ -41,7 +41,7 @@ // | Author: Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_datatype_testcase.php,v 1.2 2006/03/01 12:15:38 lsmith Exp $ +// $Id: MDB2_datatype_testcase.php,v 1.3 2006/03/20 12:34:08 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -136,7 +136,7 @@ implode(', ', array_keys($values)), implode(', ', array_fill(0, count($values), '?')) ); - $stmt = $this->db->prepare($query, $types, false); + $stmt = $this->db->prepare($query, $types, MDB2_PREPARE_MANIP); if (PEAR::isError($stmt)) { $this->assertTrue(false, 'Error creating prepared query: '.$stmt->getMessage()); } http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_function_testcase.php?r1=1.13&r2=1.14&diff_format=u Index: pear/MDB2/tests/MDB2_function_testcase.php diff -u pear/MDB2/tests/MDB2_function_testcase.php:1.13 pear/MDB2/tests/MDB2_function_testcase.php:1.14 --- pear/MDB2/tests/MDB2_function_testcase.php:1.13 Wed Mar 1 12:15:38 2006 +++ pear/MDB2/tests/MDB2_function_testcase.php Mon Mar 20 12:34:08 2006 @@ -41,7 +41,7 @@ // | Author: Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_function_testcase.php,v 1.13 2006/03/01 12:15:38 lsmith Exp $ +// $Id: MDB2_function_testcase.php,v 1.14 2006/03/20 12:34:08 lsmith Exp $ class MDB2_Function_TestCase extends MDB2_TestCase { @@ -107,7 +107,7 @@ } $data = $this->getSampleData(1234); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $stmt->free(); http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_manager_testcase.php?r1=1.43&r2=1.44&diff_format=u Index: pear/MDB2/tests/MDB2_manager_testcase.php diff -u pear/MDB2/tests/MDB2_manager_testcase.php:1.43 pear/MDB2/tests/MDB2_manager_testcase.php:1.44 --- pear/MDB2/tests/MDB2_manager_testcase.php:1.43 Wed Mar 1 12:15:38 2006 +++ pear/MDB2/tests/MDB2_manager_testcase.php Mon Mar 20 12:34:08 2006 @@ -42,7 +42,7 @@ // | Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_manager_testcase.php,v 1.43 2006/03/01 12:15:38 lsmith Exp $ +// $Id: MDB2_manager_testcase.php,v 1.44 2006/03/20 12:34:08 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -124,7 +124,7 @@ $query = 'INSERT INTO '.$this->table; $query.= ' (somename, somedescription)'; $query.= ' VALUES (:somename, :somedescription)'; - $stmt =& $this->db->prepare($query, array('text', 'text'), false); + $stmt =& $this->db->prepare($query, array('text', 'text'), MDB2_PREPARE_MANIP); if (PEAR::isError($stmt)) { $this->assertTrue(true, 'Preparing insert'); return; http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_usage_testcase.php?r1=1.53&r2=1.54&diff_format=u Index: pear/MDB2/tests/MDB2_usage_testcase.php diff -u pear/MDB2/tests/MDB2_usage_testcase.php:1.53 pear/MDB2/tests/MDB2_usage_testcase.php:1.54 --- pear/MDB2/tests/MDB2_usage_testcase.php:1.53 Mon Mar 13 15:09:15 2006 +++ pear/MDB2/tests/MDB2_usage_testcase.php Mon Mar 20 12:34:08 2006 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_usage_testcase.php,v 1.53 2006/03/13 15:09:15 lsmith Exp $ +// $Id: MDB2_usage_testcase.php,v 1.54 2006/03/20 12:34:08 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -56,7 +56,7 @@ function testStorage() { $data = $this->getSampleData(1234); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $stmt->free(); @@ -84,7 +84,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row] = $this->getSampleData($row); @@ -120,7 +120,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row] = $this->getSampleData($row); @@ -177,7 +177,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row] = $this->getSampleData($row); @@ -221,7 +221,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row] = $this->getSampleData($row); @@ -261,7 +261,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row] = $this->getSampleData($row); @@ -315,7 +315,7 @@ ), ); - $stmt = $this->db->prepare("INSERT INTO users (user_name, user_password, user_id) VALUES (?, ?, ?)", array('text', 'text', 'integer'), false); + $stmt = $this->db->prepare("INSERT INTO users (user_name, user_password, user_id) VALUES (?, ?, ?)", array('text', 'text', 'integer'), MDB2_PREPARE_MANIP); $stmt->bindParam(0, $data[0]['user_name']); $stmt->bindParam(2, $data[0]['user_id']); @@ -331,7 +331,7 @@ $this->assertTrue(!PEAR::isError($result), 'Could not execute prepared query with a text value with a question mark. Error: '); - $stmt = $this->db->prepare("INSERT INTO users (user_name, user_password, user_id) VALUES (:text, :question, ".$data[1]['user_id'].")", array('text', 'text'), false); + $stmt = $this->db->prepare("INSERT INTO users (user_name, user_password, user_id) VALUES (:text, :question, ".$data[1]['user_id'].")", array('text', 'text'), MDB2_PREPARE_MANIP); $stmt->bindParam('question', $data[1]['user_password']); $stmt->bindParam('text', $data[1]['user_name']); @@ -370,7 +370,7 @@ function testMetadata() { $data = $this->getSampleData(1234); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $stmt->free(); @@ -513,7 +513,7 @@ $data = array(); $total_rows = 5; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row] = $this->getSampleData($row); @@ -760,7 +760,7 @@ $data = array(); $total_rows = 7; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $data[$row] = $this->getSampleData($row); @@ -775,7 +775,7 @@ $stmt->free(); - $stmt = $this->db->prepare('UPDATE users SET user_password=? WHERE user_id < ?', array('text', 'integer'), false); + $stmt = $this->db->prepare('UPDATE users SET user_password=? WHERE user_id < ?', array('text', 'integer'), MDB2_PREPARE_MANIP); for ($row = 0; $row < $total_rows; $row++) { $password = "another_password_$row"; @@ -795,7 +795,7 @@ $stmt->free(); - $stmt = $this->db->prepare('DELETE FROM users WHERE user_id >= ?', array('integer'), false); + $stmt = $this->db->prepare('DELETE FROM users WHERE user_id >= ?', array('integer'), MDB2_PREPARE_MANIP); $row = intval($total_rows / 2); $stmt->bindParam(0, $row); @@ -826,7 +826,7 @@ $data = $this->getSampleData(0); $this->db->beginTransaction(); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $this->db->rollback(); $stmt->free(); @@ -850,7 +850,7 @@ $data = $this->getSampleData(1); $this->db->beginTransaction(); - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $this->db->commit(); $stmt->free(); @@ -900,7 +900,7 @@ } $query = 'INSERT INTO files (ID, document, picture) VALUES (1, ?, ?)'; - $stmt = $this->db->prepare($query, array('clob', 'blob'), false, array('document', 'picture')); + $stmt = $this->db->prepare($query, array('clob', 'blob'), MDB2_PREPARE_MANIP, array('document', 'picture')); $character_lob = ''; $binary_lob = ''; @@ -973,7 +973,7 @@ } $query = 'INSERT INTO files (ID, document, picture) VALUES (1, :document, :picture)'; - $stmt = $this->db->prepare($query, array('document' => 'clob', 'picture' => 'blob'), false); + $stmt = $this->db->prepare($query, array('document' => 'clob', 'picture' => 'blob'), MDB2_PREPARE_MANIP); $character_data_file = 'character_data'; if (($file = fopen($character_data_file, 'w'))) { @@ -1067,7 +1067,7 @@ } $query = 'INSERT INTO files (ID, document, picture) VALUES (1, :document, :picture)'; - $stmt = $this->db->prepare($query, array('document' => 'clob', 'picture' => 'blob'), false); + $stmt = $this->db->prepare($query, array('document' => 'clob', 'picture' => 'blob'), MDB2_PREPARE_MANIP); $null = null; $stmt->bindParam('document', $null); @@ -1105,7 +1105,7 @@ $data = $this->getSampleData(1234); $data['user_password'] = ''; - $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), false); + $stmt = $this->db->prepare('INSERT INTO users (' . implode(', ', array_keys($this->fields)) . ') VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array_values($this->fields), MDB2_PREPARE_MANIP); $result = $stmt->execute(array_values($data)); $stmt->free(); http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Wrapper/peardb.php?r1=1.43&r2=1.44&diff_format=u Index: pear/MDB2/MDB2/Wrapper/peardb.php diff -u pear/MDB2/MDB2/Wrapper/peardb.php:1.43 pear/MDB2/MDB2/Wrapper/peardb.php:1.44 --- pear/MDB2/MDB2/Wrapper/peardb.php:1.43 Wed Mar 1 12:15:38 2006 +++ pear/MDB2/MDB2/Wrapper/peardb.php Mon Mar 20 12:34:08 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: peardb.php,v 1.43 2006/03/01 12:15:38 lsmith Exp $ +// $Id: peardb.php,v 1.44 2006/03/20 12:34:08 lsmith Exp $ // /** @@ -441,8 +441,9 @@ function prepare($query) { // parse for ! and & - // set types - return $this->db_object->prepare($query); + $types = array(); + $result_types = DB::isManip($query) ? MDB2_PREPARE_MANIP : MDB2_PREPARE_RESULT; + return $this->db_object->prepare($query, $types, $result_types); } function autoPrepare($table, $table_fields, $mode = MDB2_AUTOQUERY_INSERT, $where = false)
« previous php.pear.cvs (#39204) next »