mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make PDO_OCI test more resilient
This commit is contained in:
parent
bc508b0b88
commit
bca32de0c7
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
PDO OCI: Inserts 10K with 1 number and 2 LOB columns (stress test)
|
||||
PDO OCI: Inserts 1K with 1 number and 2 LOB columns (stress test)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
|
||||
|
@ -51,8 +51,8 @@ $a8 = str_repeat('h', 4093);
|
|||
$a9 = str_repeat('i', 4094);
|
||||
$a10 = str_repeat('j', 4095);
|
||||
|
||||
printf("Inserting 10000 Records ... ");
|
||||
for($i=0; $i<1000; $i++) {
|
||||
printf("Inserting 1000 Records ... ");
|
||||
for($i=0; $i<100; $i++) {
|
||||
do_insert($db, $i * 10 + 1, $a1, $a10);
|
||||
do_insert($db, $i * 10 + 2, $a2, $a9);
|
||||
do_insert($db, $i * 10 + 3, $a3, $a8);
|
||||
|
@ -71,4 +71,4 @@ printf("Done\n");
|
|||
|
||||
?>
|
||||
--EXPECT--
|
||||
Inserting 10000 Records ... Done
|
||||
Inserting 1000 Records ... Done
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
PDO OCI: Fetches 10K records from a table that contains 1 number and 2 LOB columns (stress test)
|
||||
PDO OCI: Fetches 1K records from a table that contains 1 number and 2 LOB columns (stress test)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue