You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/13 18:28:26 UTC

[jira] [Commented] (IGNITE-4113) ODBC with php PDO: CLI crash when execute query using scrollable cursor and FETCH_ORI_LAST, FETCH_ORI_PRIOR

    [ https://issues.apache.org/jira/browse/IGNITE-4113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15822114#comment-15822114 ] 

ASF GitHub Bot commented on IGNITE-4113:
----------------------------------------

Github user isapego closed the pull request at:

    https://github.com/apache/ignite/pull/1190


> ODBC with 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
>            Reporter: Ksenia Rybakova
>            Assignee: Igor Sapego
>             Fix For: 1.8
>
>
> Setup:
> Windows 10
> php7.0 + php PDO
> Ignite ODBC driver is installed
> DSN is set up
> 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)