Name

Mysql::Statement::isblob

Synopsis

@blobs  = $statement_handle->isblob;

Mysql::Statement::isblob returns a list of boolean values indicating if the fields contained in the statement handle are of a BLOB type. If called in a scalar context, the function returns a reference to an array.

Example

use Mysql;
$db = Mysql->connect(undef,'mydata');

my $output = $db->query('SELECT name, data from myothertable');

if ($output->isblob->[0]) {
				print "Name is a BLOB.\n";
} else {
				print "Name is not a BLOB.\n";
}

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.