Re: [PHP-DEV] Errata. From: Steve Williams (swilliam <email protected>)
Date: 12/10/98

Zeev Suraski wrote:
I did as you suggested; I replaced unified_odbc.c and
php3_unified_odbc.h with the v3.0.5 versions, and it worked OK. So it
seems to be something in the newer version.

I have also found that it is caused by opening two odbc connections in
the same page. Without this everything is OK.

However I have noticed another item that you might want to check against
another RDBMS. When odbc_longreadlen is set to a value less than the
length of a text (LONGVARCHAR) field the retrieved part is printed
twice.

eg
   A text field has content: "This is my string"

   and longreadlen is set to 4

   then you get ThisThis as the value....

(Again this did NOT occur in v3.0.5)

        Steve

>
> I just looked at your earlier post. To quickly figure out what's going on,
> I recommend you first try using the 3.0.6 CVS with the old 3.0.5 ODBC
> files, to verify that the problem indeed has something to do with the ODBC
> driver, and not some language related bug that was somehow introduced. If
> you find that the bug is indeed in the ODBC driver, you can look at the
> various updates since 3.0.5 at
> http://ca.php.net/cvsweb.cgi/functions/unified_odbc.c
> and
> http://ca.php.net/cvsweb.cgi/functions/php3_unified_odbc.h
>
> (and any other files you may want to check).
>
> Zeev
> --
> Zeev Suraski <zeev <email protected>>
> For a PGP public key, finger bourbon <email protected>
>
> --
> PHP Development Mailing List http://www.php.net/
> To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
> For help: php-dev-help <email protected>

-- 
Steve Williams                 Interactive Media & Tools Group
Empress Software Inc.          http://www.empress.com

-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>