var_dump($clob1);
var_dump($clob2);
}
-print "done\n";
////////////////////
var_dump(stream_get_contents($a[$i][1]));
}
+////////////////////
+
+echo "\nSixth Query\n";
+
+$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); // Let's use streams
+
+$a = array();
+$i = 0;
+foreach($db->query("select data1 as d4_1, data2 as d4_2 from bug57702 order by id") as $row) {
+ $a[$i][0] = $row['d4_1'];
+ $a[$i][1] = $row['d4_2'];
+ var_dump(stream_get_contents($a[$i][0]));
+ var_dump(stream_get_contents($a[$i][1]));
+ $i++;
+}
+
// Cleanup
$query = "drop table bug57702";
$stmt = $db->prepare($query);
string(11) "row 1 col 2"
string(11) "row 2 col 1"
string(11) "row 2 col 2"
-done
Fourth Query
string(11) "row 1 col 1"
string(11) "row 2 col 2"
string(11) "row 2 col 1"
string(11) "row 2 col 2"
+
+Sixth Query
+string(11) "row 1 col 1"
+string(11) "row 1 col 2"
+string(11) "row 2 col 1"
+string(11) "row 2 col 2"
done