cvs: pear /MDB2 package.php /MDB2/MDB2 Extended.php
| From: | Lorenzo Alberton | Date: | Wed, 19 Sep 2007 20:54:48 +0000 |
| Subject: | cvs: pear /MDB2 package.php /MDB2/MDB2 Extended.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-48630@lists.php.net to get a copy of this message | ||
quipo Wed Sep 19 20:54:48 2007 UTC
Modified files:
/pear/MDB2/MDB2 Extended.php
/pear/MDB2 package.php
Log:
fixed bug #11975: Extended::autoExecute() does not work with Oracle when using LOBs (patch by
Pieter Meulen, van der)
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Extended.php?r1=1.58&r2=1.59&diff_format=u
Index: pear/MDB2/MDB2/Extended.php
diff -u pear/MDB2/MDB2/Extended.php:1.58 pear/MDB2/MDB2/Extended.php:1.59
--- pear/MDB2/MDB2/Extended.php:1.58 Sat Jan 6 21:40:52 2007
+++ pear/MDB2/MDB2/Extended.php Wed Sep 19 20:54:47 2007
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Extended.php,v 1.58 2007/01/06 21:40:52 quipo Exp $
+// $Id: Extended.php,v 1.59 2007/09/19 20:54:47 quipo Exp $
/**
* @package MDB2
@@ -100,10 +100,16 @@
if (PEAR::isError($db)) {
return $db;
}
- return $db->prepare($query, $types, $result_types);
+ $lobs = array();
+ foreach ($types as $param => $type) {
+ if (($type == 'clob') || ($type == 'blob')) {
+ $lobs[$param] = $table_fields[$param];
+ }
+ }
+ return $db->prepare($query, $types, $result_types, $lobs);
}
- // }}}
+ // }}}
// {{{ autoExecute()
/**
@@ -166,8 +172,8 @@
}
return $result;
}
- // }}}
+ // }}}
// {{{ buildManipSQL()
/**
@@ -247,8 +253,8 @@
return $db->raiseError(MDB2_ERROR_SYNTAX, null, null,
'Non existant mode', __FUNCTION__);
}
- // }}}
+ // }}}
// {{{ limitQuery()
/**
@@ -279,8 +285,8 @@
$result =& $db->query($query, $types, $result_class, $result_wrap_class);
return $result;
}
- // }}}
+ // }}}
// {{{ execParam()
/**
@@ -319,8 +325,8 @@
$stmt->free();
return $result;
}
- // }}}
+ // }}}
// {{{ getOne()
/**
@@ -366,8 +372,8 @@
$result->free();
return $one;
}
- // }}}
+ // }}}
// {{{ getRow()
/**
@@ -412,8 +418,8 @@
$result->free();
return $row;
}
- // }}}
+ // }}}
// {{{ getCol()
/**
@@ -459,8 +465,8 @@
$result->free();
return $col;
}
- // }}}
+ // }}}
// {{{ getAll()
/**
@@ -514,8 +520,8 @@
$result->free();
return $all;
}
- // }}}
+ // }}}
// {{{ getAssoc()
/**
@@ -619,8 +625,8 @@
$result->free();
return $all;
}
- // }}}
+ // }}}
// {{{ executeMultiple()
/**
@@ -648,8 +654,8 @@
}
return MDB2_OK;
}
- // }}}
+ // }}}
// {{{ getBeforeID()
/**
@@ -683,8 +689,8 @@
}
return 'NULL';
}
- // }}}
+ // }}}
// {{{ getAfterID()
/**
@@ -709,6 +715,7 @@
}
return $db->lastInsertID($table, $field);
}
+
// }}}
}
?>
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/pear/MDB2/package.php?r1=1.263&r2=1.264&diff_format=u
Index: pear/MDB2/package.php
diff -u pear/MDB2/package.php:1.263 pear/MDB2/package.php:1.264
--- pear/MDB2/package.php:1.263 Sun Sep 9 14:10:29 2007
+++ pear/MDB2/package.php Wed Sep 19 20:54:47 2007
@@ -15,6 +15,8 @@
- added new test cases in the test suite
- added LENGTH() function in the Function module
- fixed bug #11906: quoteIdentifier fails for names with dots
+- fixed bug #11975: Extended::autoExecute() does not work with Oracle when using LOBs
+ (patch by Pieter Meulen, van der)
open todo items:
- handle autoincrement fields in alterTable()