Test: /ext/pdo_pgsql/tests/copy_from.phpt - Version 7.2.12    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ Fatal error: Uncaught PDOException: SQLSTATE[08006] [7] FATAL: role "password=" does not exist in /sources/php-7.2.12/ext/pdo/tests/pdo_test.inc:35
002+ Stack trace:
003+ #0 /sources/php-7.2.12/ext/pdo/tests/pdo_test.inc(35): PDO->__construct('pgsql:host=loca...', NULL, NULL, NULL)
004+ #1 /sources/php-7.2.12/ext/pdo/tests/pdo_test.inc(73): PDOTest::factory()
005+ #2 %s/copy_from.php(3): PDOTest::test_factory('/sources/php-7....')
006+ #3 {main}
007+ thrown in /sources/php-7.2.12/ext/pdo/tests/pdo_test.inc on line 35
001- Preparing test file and array for CopyFrom tests
002- Testing pgsqlCopyFromArray() with default parameters
003- bool(true)
004- array(6) {
005- ["a"]=>
006- int(0)
007- [0]=>
008- int(0)
009- ["b"]=>
010- string(13) "test insert 0"
011- [1]=>
012- string(13) "test insert 0"
013- ["c"]=>
014- NULL
015- [2]=>
016- NULL
017- }
018- array(6) {
019- ["a"]=>
020- int(1)
021- [0]=>
022- int(1)
023- ["b"]=>
024- string(13) "test insert 1"
025- [1]=>
026- string(13) "test insert 1"
027- ["c"]=>
028- NULL
029- [2]=>
030- NULL
031- }
032- array(6) {
033- ["a"]=>
034- int(2)
035- [0]=>
036- int(2)
037- ["b"]=>
038- string(13) "test insert 2"
039- [1]=>
040- string(13) "test insert 2"
041- ["c"]=>
042- NULL
043- [2]=>
044- NULL
045- }
046- Testing pgsqlCopyFromArray() with different field separator and not null indicator
047- bool(true)
048- array(6) {
049- ["a"]=>
050- int(0)
051- [0]=>
052- int(0)
053- ["b"]=>
054- string(13) "test insert 0"
055- [1]=>
056- string(13) "test insert 0"
057- ["c"]=>
058- NULL
059- [2]=>
060- NULL
061- }
062- array(6) {
063- ["a"]=>
064- int(1)
065- [0]=>
066- int(1)
067- ["b"]=>
068- string(13) "test insert 1"
069- [1]=>
070- string(13) "test insert 1"
071- ["c"]=>
072- NULL
073- [2]=>
074- NULL
075- }
076- array(6) {
077- ["a"]=>
078- int(2)
079- [0]=>
080- int(2)
081- ["b"]=>
082- string(13) "test insert 2"
083- [1]=>
084- string(13) "test insert 2"
085- ["c"]=>
086- NULL
087- [2]=>
088- NULL
089- }
090- Testing pgsqlCopyFromArray() with only selected fields
091- bool(true)
092- array(6) {
093- ["a"]=>
094- int(0)
095- [0]=>
096- int(0)
097- ["b"]=>
098- NULL
099- [1]=>
100- NULL
101- ["c"]=>
102- NULL
103- [2]=>
104- NULL
105- }
106- array(6) {
107- ["a"]=>
108- int(1)
109- [0]=>
110- int(1)
111- ["b"]=>
112- NULL
113- [1]=>
114- NULL
115- ["c"]=>
116- NULL
117- [2]=>
118- NULL
119- }
120- array(6) {
121- ["a"]=>
122- int(2)
123- [0]=>
124- int(2)
125- ["b"]=>
126- NULL
127- [1]=>
128- NULL
129- ["c"]=>
130- NULL
131- [2]=>
132- NULL
133- }
134- Testing pgsqlCopyFromArray() with error
135- Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
136- Testing pgsqlCopyFromFile() with default parameters
137- bool(true)
138- array(6) {
139- ["a"]=>
140- int(0)
141- [0]=>
142- int(0)
143- ["b"]=>
144- string(13) "test insert 0"
145- [1]=>
146- string(13) "test insert 0"
147- ["c"]=>
148- NULL
149- [2]=>
150- NULL
151- }
152- array(6) {
153- ["a"]=>
154- int(1)
155- [0]=>
156- int(1)
157- ["b"]=>
158- string(13) "test insert 1"
159- [1]=>
160- string(13) "test insert 1"
161- ["c"]=>
162- NULL
163- [2]=>
164- NULL
165- }
166- array(6) {
167- ["a"]=>
168- int(2)
169- [0]=>
170- int(2)
171- ["b"]=>
172- string(13) "test insert 2"
173- [1]=>
174- string(13) "test insert 2"
175- ["c"]=>
176- NULL
177- [2]=>
178- NULL
179- }
180- Testing pgsqlCopyFromFile() with different field separator and not null indicator
181- bool(true)
182- array(6) {
183- ["a"]=>
184- int(0)
185- [0]=>
186- int(0)
187- ["b"]=>
188- string(13) "test insert 0"
189- [1]=>
190- string(13) "test insert 0"
191- ["c"]=>
192- NULL
193- [2]=>
194- NULL
195- }
196- array(6) {
197- ["a"]=>
198- int(1)
199- [0]=>
200- int(1)
201- ["b"]=>
202- string(13) "test insert 1"
203- [1]=>
204- string(13) "test insert 1"
205- ["c"]=>
206- NULL
207- [2]=>
208- NULL
209- }
210- array(6) {
211- ["a"]=>
212- int(2)
213- [0]=>
214- int(2)
215- ["b"]=>
216- string(13) "test insert 2"
217- [1]=>
218- string(13) "test insert 2"
219- ["c"]=>
220- NULL
221- [2]=>
222- NULL
223- }
224- Testing pgsqlCopyFromFile() with only selected fields
225- bool(true)
226- array(6) {
227- ["a"]=>
228- int(0)
229- [0]=>
230- int(0)
231- ["b"]=>
232- NULL
233- [1]=>
234- NULL
235- ["c"]=>
236- NULL
237- [2]=>
238- NULL
239- }
240- array(6) {
241- ["a"]=>
242- int(1)
243- [0]=>
244- int(1)
245- ["b"]=>
246- NULL
247- [1]=>
248- NULL
249- ["c"]=>
250- NULL
251- [2]=>
252- NULL
253- }
254- array(6) {
255- ["a"]=>
256- int(2)
257- [0]=>
258- int(2)
259- ["b"]=>
260- NULL
261- [1]=>
262- NULL
263- ["c"]=>
264- NULL
265- [2]=>
266- NULL
267- }
268- Testing pgsqlCopyFromFile() with error
269- Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
270- Testing pgsqlCopyFromFile() with non existing file
271- Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file