|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-30 11:19 UTC] grant dot croker at ingres dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 04:00:01 2025 UTC |
Description: ------------ When executing a simple script that creates a table and inserts a row, OpenAPI errors are seen. Reproduce code: --------------- <?php $database="demodb"; $conn = ingres_connect($database); if ($conn) { echo "Connection succeeded."; $rc=ingres_query($conn, "create table boolean_test (idx integer not null, bool integer not null)"); $param = array(1,1); $rc=ingres_query($conn, "insert into boolean_test values (?,?)",$param); if ($rc) { echo "Insert succeeded."; $param = array(1); $rc=ingres_query($conn, "select * from boolean_test where idx = ?",$param); if ($rc) { while ( $object = ingres_fetch_object($rc)) { echo $object->idx . " " . $object->bool; } } } else { echo "Insert failed."; } ingres_close($conn); } else { echo "Connection failed."; } ?> Expected result: ---------------- Connection succeeded.Insert succeeded.1 1 Actual result: -------------- Connection succeeded.Insert succeeded. Warning: ingres_query(): ii_success : Server or API error - no error message available, status 7 in /home/grant/public_html/php/pecl/2.0/ingres/insert_test_stmt. php on line 17 Warning: ingres_query(): ii_success : Server or API error - no error message available, status 7 in /home/grant/public_html/php/pecl/2.0/ingres/insert_test_stmt. php on line 17 Warning: ingres_query(): _close_statement : failed in /home/grant/public_html/php/pecl/2.0/ingres/insert_test_stmt. php on line 17