patch for sybase extension

From: Date: Fri, 15 Feb 2002 13:18:44 +0000
Subject: patch for sybase extension
Groups: php.dev 
Request: Send a blank email to php-dev+get-80073@lists.php.net to get a copy of this message
FreeTDS now supports alternate date formats when converting datetime to char. The current PHP code however passes NULL as the first argument to dbconvert(), so the code doesn't know what format is currently set. This patch passes the dbprocess instead. Anybody mind if I check it in? Brian --- php_sybase_db.c.orig Fri Feb 15 15:20:28 2002 +++ php_sybase_db.c Fri Feb 15 15:24:50 2002 @@ -674,7 +674,7 @@ memset(res_buf,' ',res_length+1); /* XXX i'm sure there's a better way - dbconvert(NULL,coltype(offset),dbdata(sybase_ptr->link,offset), res_length,SYBCHAR,res_buf,-1); + dbconvert(sybase_ptr->link,coltype(offset),dbdata(sybase_ptr->link,offset), res_length,SYBCHAR,res_buf,-1); /* get rid of trailing spaces */ p = res_buf + res_length;

« previous php.dev (#80073) next »