PHPからMDB2を使ってのSQL実行エラーというかワーニングというか

Warning: preg_match() expects parameter 2 to be string, object given in /usr/local/share/pear/MDB2/Driver/mysql.php on line 655
function _modifyQuery($query, $is_manip, $limit, $offset)
{
if ($this->options[‘portability’] & MDB2_PORTABILITY_DELETE_COUNT) {
// “DELETE FROM table” gives 0 affected rows in MySQL.
// This little hack lets you know how many rows were deleted.
if (preg_match(‘/^\s*DELETE\s+FROM\s+(\S+)\s*$/i’, $query)) {
$queryにpear_errorなオブジェクトが来てるくさい。バグじゃねーの?

コメントを残す