Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#25097 [Fbk->NoF]: SAPDB ODBC Connection in SQLMode=Oracle always results in no "rows"
ID: 25097
Updated by: [email]sniper@php.net[/email]
Reported By: huenerbe at dli-11 dot vcsystem dot com
-Status: Feedback
+Status: No Feedback
Bug Type: ODBC related
Operating System: Linux 2.4.x
PHP Version: 4.3.2
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-08-15 10:44:58] [email]kalowsky@php.net[/email]
Further more, I have no idea what SQLMode does so I haven't a clue how
to debug this.
I'm going to assume that this isn't a PHP bug, as it works for fine for
myself and others, but rather a quark in how SAPDB handles things.
If you could turn on logging that would also help.
------------------------------------------------------------------------
[2003-08-15 08:21:05] [email]sniper@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]
------------------------------------------------------------------------
[2003-08-15 08:17:34] huenerbe at dli-11 dot vcsystem dot com
Description:
------------
All result-sets querying a SAPDB (via ODBC SQLMode=ORACLE) end up in
"no rows" returned. These results contain the correct table-headers but
no data. Switching to SQLMode=INTERNAL returns correct data. This seems
to be a PHP related problem as I tried the php internal odbc manager
and iODBC. SQLMode is working fine in other tools such as SAPDB
SQL-Studio & connection via jdbc.
I was able to reproduce this problem on PHP versions 4.3.2 & 5.0.0b1.
Reproduce code:
---------------
..odbc.ini
---
[cldb01]
Driver = /public/project/sapdb/indep_prog/lib/libsqlod.so
Description = SAPDB cldb01
DSN = cldb01
Servername = localhost
ServerDB = cldb01
SQLMode = oracle
odbctest.php
---
<?
$con = odbc_connect("cldb01","dba","dba");
$res = odbc_do($con,"SELECT * FROM users");
odbc_result_all($res);
?>
Expected result:
----------------
I expect to see a list of all users in my database, like this:
OWNER GROUPNAME USERNAME USERMODE CONNECTMODE MAXTIMEOUT COSTWARNING
COSTLIMIT DEFAULTCODE CREATEDATE CREATETIME ALTERDATE ALTERTIME
PWCREADATE PWCREATIME SERVERDB SERVERNODE USER_ID COMMENT
DBA DBA SYSDBA DEFAULT 2003-08-15 14:32:56 2003-08-15 14:32:56
CLDB01 andrea 10
DBA HUENERBE RESOURCE MULTIPLE DEFAULT 2003-08-15 14:43:59
2003-08-15 14:43:59 2003-08-15 14:43:59 CLDB01 andrea 13
DBA DBM ADMIN DEFAULT 2003-08-15 14:32:56 2003-08-15 14:32:56
CLDB01 andrea 0
Actual result:
--------------
<h2>No rows found</h2>
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=25097&edit=1[/url]
sniper@php.net Guest
-
odbc, oracle --> error "internal error occured"
hi everyone, i'm using cf mx 7 standard and want to connect to an oracle-db via odbc, beause it's not possible directly via oracle-driver, isn't... -
SQL database connection problem with dbtype="ODBC"
I am having one website in coldfusion. But not able to connect database with application. I am getting following error. I created Database in... -
"Microsoft ODBC for Oracle" Failing when connecting to a 9i server
We just upgrade our oracle server from 8i up to 9i and now our asp pages are failing. We were using the Microsoft ODBC drivers for Oracle V... -
#25097 [Fbk]: SAPDB ODBC Connection in SQLMode=Oracle always results in no "rows"
ID: 25097 Updated by: kalowsky@php.net Reported By: huenerbe at dli-11 dot vcsystem dot com Status: Feedback... -
#25097 [NEW]: SAPDB ODBC Connection in SQLMode=Oracle always results in no "rows"
From: huenerbe at dli-11 dot vcsystem dot com Operating system: Linux 2.4.x PHP version: 4.3.2 PHP Bug Type: ODBC related...



Reply With Quote

