xref: /PHP-5.4/ext/pgsql/tests/80_bug14383.phpt (revision 30953384)
1--TEST--
2Bug #14383 (using postgres with DBA causes DBA not to be able to find any keys)
3--SKIPIF--
4<?php
5require_once(dirname(__FILE__).'/../../dba/tests/skipif.inc');
6require_once('skipif.inc');
7?>
8--FILE--
9<?php
10require_once('config.inc');
11
12$dbh = @pg_connect($conn_str);
13if (!$dbh) {
14	die ("Could not connect to the server");
15}
16pg_close($dbh);
17
18require_once(dirname(__FILE__).'/../../dba/tests/test.inc');
19require_once(dirname(__FILE__).'/../../dba/tests/dba_handler.inc');
20
21?>
22--EXPECTF--
23database handler: %s
243NYNYY
25Content String 2
26Content 2 replaced
27Read during write:%sallowed
28Content 2 replaced 2nd time
29The 6th value
30array(3) {
31  ["key number 6"]=>
32  string(13) "The 6th value"
33  ["key2"]=>
34  string(27) "Content 2 replaced 2nd time"
35  ["key5"]=>
36  string(23) "The last content string"
37}
38--NO-LOCK--
393NYNYY
40Content String 2
41Content 2 replaced
42Read during write: not allowed
43Content 2 replaced 2nd time
44The 6th value
45array(3) {
46  ["key number 6"]=>
47  string(13) "The 6th value"
48  ["key2"]=>
49  string(27) "Content 2 replaced 2nd time"
50  ["key5"]=>
51  string(23) "The last content string"
52}
53