You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2016/11/06 11:19:59 UTC
[jira] [Assigned] (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:all-tabpanel ]
Vladimir Ozerov reassigned IGNITE-4113:
---------------------------------------
Assignee: Igor Sapego (was: Vladimir Ozerov)
LGTM
> 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)