Lines Matching refs:test
17 $db->exec('CREATE TABLE test (a integer not null primary key, b text, c integer)');
21 echo "Preparing test table for CopyTo tests\n";
22 $stmt = $db->prepare("INSERT INTO test (a, b, c) values (?, ?, ?)");
26 $secondParameter = "test insert {$i}";
37 var_dump($db->pgsqlCopyToArray('test'));
39 var_dump($db->pgsqlCopyToArray('test',";","NULL"));
41 var_dump($db->pgsqlCopyToArray('test',";","NULL",'a,c'));
53 var_dump($db->pgsqlCopyToFile('test',$filename));
56 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL"));
59 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL",'a,c'));
71 var_dump($db->pgsqlCopyToFile('test', 'nonexistent/foo.csv'));
81 Preparing test table for CopyTo tests
85 string(19) "0 test insert 0 \N
88 string(19) "1 test insert 1 \N
91 string(19) "2 test insert 2 \N
97 string(21) "0;test insert 0;NULL
100 string(21) "1;test insert 1;NULL
103 string(21) "2;test insert 2;NULL
122 0 test insert 0 \N
123 1 test insert 1 \N
124 2 test insert 2 \N
127 0;test insert 0;NULL
128 1;test insert 1;NULL
129 2;test insert 2;NULL