(PHP 8 >= 8.4.0)
A PDO subclass representing a connection using the ODBC PDO driver.
$dsn,$username = null,$password = null,$options = null$dsn,$username = null,$password = null,$options = null$query, ?int $fetchMode = PDO::FETCH_COLUMN, int $colno): PDOStatement|false$query,$fetchMode = PDO::FETCH_CLASS,$classname,$constructorArgs$query, ?int $fetchMode = PDO::FETCH_INTO, object $object): PDOStatement|falsePdo\Odbc::ATTR_USE_CURSOR_LIBRARYThis option controls whether the ODBC cursor library is used. The ODBC cursor library supports some advanced ODBC features (e.g. block scrollable cursors), which may not be implemented by the driver. The following values are supported:
Pdo\Odbc::SQL_USE_IF_NEEDEDUse the ODBC cursor library when needed. This is the default.
Pdo\Odbc::SQL_USE_DRIVERNever use the ODBC cursor library.
Pdo\Odbc::SQL_USE_ODBCAlways use the ODBC cursor library.
Pdo\Odbc::ATTR_ASSUME_UTF8
Windows only.
If true, UTF-16 encoded character data (CHAR,
VARCHAR and LONGVARCHAR)
is converted to UTF-8 when reading from or writing data to the database.
If false (the default), character encoding conversion may be done by the driver.