PDO::setAttribute

(no version information, might be only in CVS)

PDO::setAttribute --  Set an attribute

Description

bool PDO::setAttribute ( int attribute, mixed value )

Sets an attribute on the database handle. Some of the available generic attributes are listed below; some drivers may make use of additional driver specific attributes.

  • PDO_ATTR_CASE: Force column names to a specific case.

    • PDO_CASE_LOWER: Force column names to lower case.

    • PDO_CASE_NATURAL: Leave column names as returned by the database driver.

    • PDO_CASE_UPPER: Force column names to upper case.