1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/pdo_sqlite/tests/bug79664.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

31 lines
526 B
PHP

--TEST--
Bug #79664 (PDOStatement::getColumnMeta fails on empty result set)
--EXTENSIONS--
pdo_sqlite
--FILE--
<?php
$pdo = new PDO('sqlite::memory:', null, null, [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
]);
$stmt = $pdo->query('select 1 where 0');
if ($stmt->columnCount()) {
var_dump($stmt->getColumnMeta(0));
}
?>
--EXPECT--
array(6) {
["native_type"]=>
string(4) "null"
["pdo_type"]=>
int(0)
["flags"]=>
array(0) {
}
["name"]=>
string(1) "1"
["len"]=>
int(-1)
["precision"]=>
int(0)
}