# Some TYPE gotchas

- ## Bind TYPE attribute is just a hint

  - and like all hints in the DBI, they can be ignored
  - the driver is unlikely to warn you that it's ignoring an attribute

- ## Many drivers only care about the number vs string distinction

  - and ignore other kinds of TYPE value

- ## For some drivers/databases that do pay attention to the TYPE…

  - using the wrong type can mean an index on the value field isn’t used

- ## Some drivers let you specify private types

  $sth->bind_param(1, $value, { ora_type => 97 });

## -

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