|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42309 select of nvarchar() delivers only the first 250 letters
Submitted: 2007-08-15 12:58 UTC Modified: 2007-08-15 17:09 UTC
From: bc at ringwald dot name Assigned: fmk (profile)
Status: Not a bug Package: MSSQL related
PHP Version: 5.2.3 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: bc at ringwald dot name
New email:
PHP Version: OS:


 [2007-08-15 12:58 UTC] bc at ringwald dot name
select of nvarchar() delivers only the first 250 letters

workaround: convert(text, attribut)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-15 15:43 UTC]
Assigned to the maintainer.
 [2007-08-15 17:09 UTC]
(n)char and (n)varchar columns has a limit of 256 bytes. This is a limitation in ntwdblib.dll from Microsoft and can't be fixed in the PHP extension.

Workaround: use php_dblib.dll as a drop in replacement for php_mssql.dll. This extension is build on the FreeTDS version of dblib and does not have the same limitations.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 11:01:28 2024 UTC