PHP5-MSSQL package needed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freetds (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php5-sybase
Description: Ubuntu 9.04
Release: 9.04
libapache2-
Installed: 5.2.6.dfsg.
Candidate: 5.2.6.dfsg.
Version table:
*** 5.2.6.dfsg.
500 http://
500 http://
100 /var/lib/
5.
500 http://
freetds-dev:
Installed: 0.82-4
Candidate: 0.82-4
Version table:
*** 0.82-4 0
500 http://
100 /var/lib/
Problem: There is no package for Microsoft SQL Server support in PHP on Ubuntu.
Failed solutions: using php5-sybase package.
When using php5-sybase querying ntext data (unicode text) Microsoft SQL Server 2000 gives the following error:
"Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier."
Successful solutions:
Reconfigure and re-build .deb packages for libapache2-mod-php5 and freetds-dev.
Reconfigure libapache2-
http://
Reconfigure freetds-dev:
Changed this line in debian/rules
--with-tdsver=4.2
to
--with-tdsver=8.0
Why this works:
1. The mssql module in php was built to query sql server, not sybase.
2. SQL Server 2000 requires at least version 7 but works best with version 8. I have not tested this on SQL server 2005 or above.
Proposed solution:
Package php5-mssql for out of the box pdo-dblib support and mssql_* function support.
If sybase works with tdsver 8.0, then it is my recommendation that freetds-dev be modified to build to that version rather than 4.2.
If sybase does not work with 8.0, then it is my recommendation that an additional freetds8.0-dev package be provided to work with php5-mssql.
If you need more information, package diffs, or anything else, please ask, I'll be happy to provide them.
Regards,
Seth
Have you checked contents of php5-sybase before you submitted this bug report? Just rethorical question, since you apparently didn't: http:// packages. ubuntu. com/jaunty/ i386/php5- sybase/ filelist
Unfortunatelly you didn't even read comments in [Bug 87063].
And unfortunatelly you have mixed two bug reports together. Seems like you have a problem with tdsver and not php5-mssql.