The statement handle []= method for DBD::Mysql is defined like this:
def []=(attr, value)
case attr
when 'mysql_use_result'
@attr['mysql_store_result'] = ! value
@attr['mysql_use_result'] = value
when 'mysql_store_result'
@attr['mysql_use_result'] = ! value
@attr['mysql_store_result'] = value
else
raise NotSupportedError
end
end
However, mysql_store_result and mysql_use_result seem to be
ignored elsewhere in the driver. Is this something that
got put in as a start toward implementing the two fetch modes,
but never finished?
(For example, fetch_scroll probably ought to raise an exception
in mysql_use_result mode for all scroll types except SQL_FETCH_NEXT...)
|