Description
Each database management system (DBMS) has it's own behaviors.
For example, some databases capitalize field names in their output,
some lowercase them, while others leave them alone. These quirks
make it difficult to port your scripts over to another server type.
PEAR DB strives to overcome these differences so your program can
switch between DBMS's without any changes.
You control which portability modes are enabled by using
the portability configuration option.
Configuration options are set via
connect() and
setOption().
The portability modes are bitwised, so they can be combined using
| and removed using ^.
See the examples section below on how to do this.
Backwards Compatibility
Some of this functionality used to be handled by the now deprecated
optimize option. For backwards compatibility, when
this option is set to portability, the following
databases get these portability modes turned on:
oci8:
DB_PORTABILITY_LOWERCASE and
DB_PORTABILITY_DELETE_COUNT
fbsql, mysql, mysqli, sqlite:
DB_PORTABILITY_DELETE_COUNT
When the optimize option gets set to
performance the portability mode is switched to
DB_PORTABILITY_NONE.