Skip to Content.
Sympa Menu

freetds - [freetds] FreeTDS and PHP: empty strings and NVARCHAR

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Mattia <mattia AT p2pforum.it>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] FreeTDS and PHP: empty strings and NVARCHAR
  • Date: Mon, 4 Jul 2011 12:49:47 +0200

Hi,
yesterday I modified PHP and FreeTDS codes to make them work with empty
strings and nvarchar in stored procedures.

1. The empty_string.patch (against actual cvs of FreeTDS) is like the ct-lib
patch (so datalen==0 is not null).

2. The nvarchar_export.patch defines XSYBNVARCHAR in sybdb.h (to use
with php).

3. The freetds092_with_nvarchar.patch (against php 5.3.6 stable) fixes a
redefinition of type LBYTE to work with actual Freetds cvs and adds support
for type SQLNVARCHAR (to use with mssql_bind function).

The first patch could break the dblib standard so it could remain an
unofficial
patch.

The second one shouldn't cause problems. It could be merged in the main
tree.

I hope I have done something useful.

Regards

--
Mattia




Archive powered by MHonArc 2.6.24.

Top of Page