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