ID: 34158 User updated by: aesthete at telecenter dot ru Reported By: aesthete at telecenter dot ru -Status: Feedback +Status: Open Bug Type: InterBase related Operating System: Linux 2.6.12 (Fedora Core 3) PHP Version: 4.4.0/5.x.x New Comment:
Tony ... this is simple query which return next value of generator GEN_DOSTAVKA_ID ... on other interfaces like isql or Ibexpert it return right values ... may be you see my previos bug: http://bugs.php.net/bug.php?id=41025 But #34158 bug not about this PDO driver ... can we solve problem with wrong t.tm_isdst = -1; value ? Previous Comments: ------------------------------------------------------------------------ [2007-04-10 16:23:42] [EMAIL PROTECTED] Why do you think it should return non-empty string? Did you try to run this query using other interfaces to Interbase? ------------------------------------------------------------------------ [2007-04-10 16:11:51] aesthete at telecenter dot ru Ok ... some code: try { $dbh = new PDO ('firebird:dbname=10.0.0.1:/home/dbase/prihod/zakupka.gdb', 'SYSDBA', '1'); foreach ($dbh->query('SELECT NAME FROM CARS ORDER BY NAME') as $row) { echo $row['NAME'].'<br>'; } $dbh = null; } catch (PDOException $e) { print "Error!: " . $e->getMessage() . "<br/>"; die(); } Return right strings. But when i try 'SELECT GEN_ID(GEN_DOSTAVKA_ID,1) FROM RDB$DATABASE' with echo $row['GEN_ID'].'<br>'; nothing return. Probably bug. ------------------------------------------------------------------------ [2007-04-09 20:41:40] [EMAIL PROTECTED] [5 Feb 2006 12:15pm UTC] [EMAIL PROTECTED] Did you try PDO_FIREBIRD ? ------------------------------------------------------------------------ [2007-04-08 22:23:51] aesthete at telecenter dot ru - ------------------------------------------------------------------------ [2007-04-08 22:21:11] aesthete at telecenter dot ru Is this bug will be fixed ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34158 -- Edit this bug report at http://bugs.php.net/?id=34158&edit=1