# DBI v2 - Other Changes

- ## Framework for comprehensive test suite

  - Installable and reusable by drivers for compliance testing

- ## Define expected UTF-8 behaviour

  - Basically drivers need to set UTF8 flag on results when appropriate

- ## More hooks

  $sth->{OnRowFetch} = sub { … };
  bind_col($n, \$foo, { OnColFetch => sub { ... } });

- ## Way to specify default bind_col() attributes for each TYPE

  $dbh->{BindColumnTypes} = {
  SQL_DATE => SQL_DATE,
  SQL_DATETIME => { TYPE => SQL_DATETIME, OnFetch => \&foo },
  };

Previous slide | Next slide | Back to first slide | View graphic version