$NetBSD: patch-ab,v 1.2 2008/09/17 22:40:06 adrianp Exp $

--- MDB2/Driver/mysql.php.orig	2007-05-03 20:05:23.000000000 +0100
+++ MDB2/Driver/mysql.php
@@ -1398,7 +1398,7 @@ class MDB2_Statement_mysql extends MDB2_
                 }
                 $value = $this->values[$parameter];
                 $type = array_key_exists($parameter, $this->types) ? $this->types[$parameter] : null;
-                if (is_resource($value) || $type == 'clob' || $type == 'blob') {
+                if (is_resource($value) || $type == 'clob' || $type == 'blob' && $this->options['lob_allow_url_include']) {
                     if (!is_resource($value) && preg_match('/^(\w+:\/\/)(.*)$/', $value, $match)) {
                         if ($match[1] == 'file://') {
                             $value = $match[2];
@@ -1476,4 +1476,4 @@ class MDB2_Statement_mysql extends MDB2_
         return $result;
     }
 }
-?>
\ No newline at end of file
+?>
