(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_LIBRARY
This 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_NEEDED
Pdo\Odbc::SQL_USE_DRIVER
Pdo\Odbc::SQL_USE_ODBC
Pdo\Odbc::ATTR_ASSUME_UTF8
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.