#25112 [Com]: SQLExecDirect error with CLOB column in SQL
| From: | php at jschreiber dot com | Date: | Sun, 17 Aug 2003 17:22:14 +0000 |
| Subject: | #25112 [Com]: SQLExecDirect error with CLOB column in SQL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46056@lists.php.net to get a copy of this message | ||
ID: 25112
Comment by: php at jschreiber dot com
Reported By: gms08701 at yahoo dot com
Status: Open
Bug Type: ODBC related
Operating System: windows 2000 sp4
PHP Version: 4CVS-2003-08-16 (stable)
New Comment:
have you tried "SELECT [...] FOR READ ONLY"?
all cursors are dynamic by default and there cursors are no
longer supported in db/2 v8.1.
have you read ibm's article on
http://www7b.software.ibm.com/dmdd/library/techarticle/0301liu/0301liu.html
? it conains a lot of useful information on blob handling with db2
and php.
Previous Comments:
------------------------------------------------------------------------
[2003-08-17 08:10:08] gms08701 at yahoo dot com
Yeah, that wouldn't work ;)
Im open to other suggestions that anyone may have.
Thanks for listening...
------------------------------------------------------------------------
[2003-08-17 01:05:14] sniper@php.net
duh..disregard my previous comment, I didn't notice you're using
windows.. :)
------------------------------------------------------------------------
[2003-08-17 01:04:41] sniper@php.net
I was a bit too fast with the 'bogus' button. :)
Anyway, I remember someone saying that even IBM themself suggest that
you should actually use the UnixODBC instead of native DB2
driver..(have the library from http://www.unixodbc.org/
installed and
configure with --with-unixODBC)
Please try it out to see if it makes any difference.
------------------------------------------------------------------------
[2003-08-17 00:49:06] gms08701 at yahoo dot com
I've been over that page already that you posted, but Im not sure how
it applies.
According to the code snippet I provided, if I comment out line 6 and
uncomment line 5, I can then select the CLOB column via php.
So even though the errors may be the same, the circumstances between
this bug report and the page you provided aren't.
Plus, the SQL works via DB2's command line, and not with php, so I
don't think its a DB2 problem.
So Im going to reopen it.
If you still feel that its bogus, reset it as such, and Ill accept it
as so.
Thanks
------------------------------------------------------------------------
[2003-08-17 00:00:50] sniper@php.net
http://dbforums.com/arch/39/2003/6/807113
------------------------------------------------------------------------
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/25112
--
Edit this bug report at http://bugs.php.net/?id=25112&edit=1