1--TEST--
2PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields
3--EXTENSIONS--
4pdo_firebird
5--SKIPIF--
6<?php require('skipif.inc'); ?>
7--ENV--
8LSAN_OPTIONS=detect_leaks=0
9--FILE--
10<?php
11require 'testdb.inc';
12
13$dbh->exec('recreate table atable (id integer not null, abool boolean)');
14$dbh->exec('insert into atable (id, abool) values (1, true)');
15$dbh->exec('insert into atable (id, abool) values (2, false)');
16$dbh->exec('insert into atable (id, abool) values (3, null)');
17$S = $dbh->query('select abool from atable order by id');
18$D = $S->fetchAll(PDO::FETCH_COLUMN);
19unset($S);
20unset($dbh);
21var_dump($D);
22?>
23--EXPECT--
24array(3) {
25  [0]=>
26  bool(true)
27  [1]=>
28  bool(false)
29  [2]=>
30  NULL
31}
32