[
https://issues.apache.org/jira/browse/IGNITE-4113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ksenia Rybakova updated IGNITE-4113:
------------------------------------
Environment: (was: Windows 10
php7.0 + php PDO
Ignite ODBC driver is installed
DSN is set up)
Description:
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}
was:
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}
Summary: Ignite ODBC with php PDO: CLI crash when execute query using
scrollable cursor and FETCH_ORI_LAST, FETCH_ORI_PRIOR (was: php PDO: CLI crash
when execute query using scrollable cursor and FETCH_ORI_LAST, FETCH_ORI_PRIOR)
> Ignite 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)