[php-maint] Bug#534881: php-sybase: connection to mssql database fails, throws empty PDOException "SQLSTATE[] (null)"

Dr. Tilo Levante tilo at levante.de
Sun Jun 28 00:04:12 UTC 2009


Package: php5-sybase
Version: 5.2.10.dfsg.1-1
Severity: important


see http://bugs.php.net/bug.php?id=48539

After updating to 5.2.10 I was not able to connect to the mssql databse. After a downgrade to 5.2.9 anything was fine.

The following path solved the issue in 5.2.10 (the three lines are newly added in 5.2.10)

Greetings

Dr. Tilo Levante
tilo at levante.de  http://www.levante.de


--- ext/pdo_dblib/dblib_driver.c.orig	2009-03-20 23:14:17.000000000
+0100
+++ ext/pdo_dblib/dblib_driver.c	2009-06-28 01:50:50.000000000 +0200
@@ -230,9 +230,9 @@
 		goto cleanup;
 	}
 
-	if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) {
-		goto cleanup;
-	}
+//	if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) {
+//		goto cleanup;
+//	}
 
 	if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) {
 		goto cleanup;



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-sybase depends on:
ii  libapache2-mod-php5 [php 5.2.10.dfsg.1-1 server-side, HTML-embedded scripti
ii  libc6                    2.9-18          GNU C Library: Shared libraries
ii  libsybdb5                0.82-5          libraries for connecting to MS SQL
ii  php5-common              5.2.10.dfsg.1-1 Common files for packages built fr

php5-sybase recommends no packages.

php5-sybase suggests no packages.

-- no debconf information





More information about the pkg-php-maint mailing list