--TEST-- PDO_DBLIB: bigint columns are returned as strings --SKIPIF-- getAttribute(PDO::DBLIB_ATTR_TDS_VERSION), ['4.2', '4.6', '5.0', '6.0', '7.0'])) die('skip bigint type is unsupported by active TDS version'); ?> --FILE-- query('SELECT CAST(1 AS bigint)'); var_dump($stmt->fetchColumn() === $expected); ?> --EXPECT-- bool(true)