# What’s new? (since the book)

- ## $DBI::lasth

  - the last handle used to make a DBI call, handy for exception handlers

- ## $statement = $dbh->{Statement}

  - holds a copy of the last statement prepared or executed by a child statement handle
  - e.g. $DBI::lasth->{Statement} in exception handler

- ## $h->{ShowErrorStatement} = 1

  - append $h->{Statement} to RaiseError/PrintError messages:
  - DBD::foo::execute failed: duplicate key [for ``insert …’’]
  - Many drivers should enable it by default. Inherited by child handles.

- ## $h->{FetchHashKeyName} = ’NAME_lc’

  - Define the default attribute used by fetchrow_hashref() for key names
  - Makes porting scripts much easier (e.g., MySQL <-> Oracle)

## .

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