Annotation of embedaddon/php/ext/mysqli/tests/mysqli_stmt_attr_get_prefetch.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: mysqli_stmt_attr_get() - prefetch
        !             3: --SKIPIF--
        !             4: <?php
        !             5: require_once('skipif.inc');
        !             6: require_once('skipifemb.inc');
        !             7: require_once('skipifconnectfailure.inc');
        !             8: die("SKIP: prefetch isn't supported at the moment");
        !             9: ?>
        !            10: --FILE--
        !            11: <?php
        !            12:        require('table.inc');
        !            13: 
        !            14:        $stmt = mysqli_stmt_init($link);
        !            15:        mysqli_stmt_prepare($stmt, 'SELECT * FROM test');
        !            16:        if (1 !== ($tmp = mysqli_stmt_attr_get($stmt, MYSQLI_STMT_ATTR_PREFETCH_ROWS))) {
        !            17:                printf("[001] Expecting int/1, got %s/%s for attribute %s/%s\n",
        !            18:                        gettype($tmp), $tmp, $k, $attr);
        !            19:        }
        !            20:        $stmt->close();
        !            21:        mysqli_close($link);
        !            22:        print "done!";
        !            23: ?>
        !            24: --CLEAN--
        !            25: <?php
        !            26:        require_once("clean_table.inc");
        !            27: ?>
        !            28: --EXPECTF--
        !            29: done!

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>