Bug #2238: Memory allocation error., SQL state HY001 in SQLGetData
| From: | rhg at soulianis dot com | Date: | Sun, 05 Sep 1999 14:57:14 +0000 |
| Subject: | Bug #2238: Memory allocation error., SQL state HY001 in SQLGetData | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10573@lists.php.net to get a copy of this message | ||
From: rhg@soulianis.com
Operating system: Linux 2.2.10 #15 SMP i686
PHP version: 3.0.12
PHP Bug Type: Adabas-D related
Bug description: Memory allocation error., SQL state HY001 in SQLGetData
Adabas D 11.0 ODBC driver for Linux fails to retrieve any BINARY data.
Symptoms: Each SQLGetData() in functions/unified_odbc.c fails with
"[SOFTWARE AG][ODBCLIB A]Memory allocation error., SQL state HY001 in SQLGetData" if the
contents of any BINARY column are retrieved.
This happens regardless of any odbc_binmode() settings (of course,
odbc_result_all() and odbc_fetch_into() succeed if odbc_binmode() is
set to ODBC_BINMODE_PASSTHRU).
This applies to odbclib.a of Adabas D 11.0 with file size of 733858 bytes.
As a workaround, I replaced it with the Adabas D 10.0 odbclib.a
which has a file size of 629128 bytes.
This one perfectly works and has no side-effects when applied to the
Adabas 11.0 engine as far as I examined.
I assume this is not a PHP bug, instead it seems to occur due to changed
internal behavior of the Adabas D 11.0 ODBC driver for Linux.