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; -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php