#12508 [Opn->Csd]: can't return a ntext type field in a select statement

From: Date: Wed, 14 Aug 2002 03:22:16 +0000
Subject: #12508 [Opn->Csd]: can't return a ntext type field in a select statement
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16710@lists.php.net to get a copy of this message
ID: 12508 Updated by: kalowsky@php.net Reported By: php@work-smarter.co.uk -Status: Open +Status: Closed Bug Type: MSSQL related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: Unfortunately the ODBC functionality is based off of ODBC v2, which means NTEXT, TEXT, and pretty much any UNICODE is unknown to PHP. Marking this as closed as there is no way to really fix this, without overhauling the entire ODBC system (which is in progress, but no promises) Previous Comments: ------------------------------------------------------------------------ [2002-04-11 01:24:46] tsugiiwa@kcej.konami.com I think this could be duplicate of #10114 or caused by same problem. Actualy Gustav's work around make me free from the error, but the return value was not fetched correctly. NULL is the always result for all fields. And, this workaround could be Ok for ODBC function only. Not succeeded at mssql functions. ------------------------------------------------------------------------ [2002-01-10 07:15:46] php@gustl.net I found a good work around. Insert following SQL query after connecting to the MSSQL database: SET TEXTSIZE 100000 or to your estimated max size, which should be the same as defined in odbc_longreadlen (), if MSSQL is accessed through ODBC, which I prefer, because the PHP mssql functions don't return my german umlaute correctly. hope this helps gustav graf ------------------------------------------------------------------------ [2001-08-01 04:44:03] php@work-smarter.co.uk selecting a ntext type field using mssql_query produces the following error message MS SQL message: ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. (severity 16) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12508&edit=1

« previous php.bugs (#16710) next »