ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ksenia Rybakova (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4113) php PDO: CLI crash when execute query using scrollable cursor and FETCH_ORI_LAST, FETCH_ORI_PRIOR
Date Wed, 26 Oct 2016 15:22:58 GMT
Ksenia Rybakova created IGNITE-4113:
---------------------------------------

             Summary: php PDO: CLI crash when execute query using scrollable cursor and FETCH_ORI_LAST,
FETCH_ORI_PRIOR
                 Key: IGNITE-4113
                 URL: https://issues.apache.org/jira/browse/IGNITE-4113
             Project: Ignite
          Issue Type: Bug
          Components: odbc
    Affects Versions: 1.6
         Environment: Windows 10
Ignite ODBC driver is installed
DSN is set up
            Reporter: Ksenia Rybakova


CLI crash (when running from command line) and "Process finished with exit code -1073741819
(0xC0000005)" (when running from IDE) when execute the following php function:

{noformat}
function check_query_with_scrollable_cursor($dbh) {
    try {
        $dbs = $dbh->prepare('SELECT firstName, lastName, salary FROM "Persons".Person',
array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL)); 
        $dbs->execute();
        $row = $dbs->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_LAST);
        do {
            print $row[0] . "\t" . $row[1] . "\t" . $row[2] . "\n";
        } while ($row = $dbs->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_PRIOR));
    } catch (PDOException $e) {
        print "Error: " . $e->getMessage() . "\n";
    } finally {
        $dbs = null;
    }
}
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message