File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ $db = pg_connect($conn_str);
12
12
var_dump (pg_version ($ db ));
13
13
pg_close ($ db );
14
14
15
+ // Get environment vars for debugging
16
+ var_dump (serialize ($ _ENV ));
17
+
15
18
echo "OK " ;
16
19
?>
17
20
--EXPECTF--
@@ -23,4 +26,5 @@ array(3) {
23
26
["server"]=>
24
27
string(%d) "%s"
25
28
}
29
+ string(%d) "%s"
26
30
OK
Original file line number Diff line number Diff line change 2
2
// These vars are used to connect db and create test table.
3
3
// values can be set to meet your environment
4
4
5
+ // "test" database must be existed. i.e. "createdb test" before testing
6
+ // PostgreSQL uses login name as username, user must have access to "test" database.
5
7
$ conn_str = "host=localhost dbname=test port=5432 " ; // connection string
6
- $ table_name = "php_pgsql_test " ; // test table that should be exist
8
+ $ table_name = "php_pgsql_test " ; // test table that will be created
7
9
$ num_test_record = 1000 ; // Number of records to create
8
10
9
11
$ table_def = "CREATE TABLE php_pgsql_test (num int, str text, bin bytea); " ; // Test table
You can’t perform that action at this time.
0 commit comments