Re: MSSQL extension BugFix FreeTDS, datetime with milliseconds

From: Date: Sun, 02 Mar 2003 18:00:56 +0000
Subject: Re: MSSQL extension BugFix FreeTDS, datetime with milliseconds
Groups: php.dev 
Request: Send a blank email to php-dev+get-94725@lists.php.net to get a copy of this message
Hi Michael, Thanks. I'll have a look at the patch when I get back to the US (I'm in Denmark right now). I have one comment though: Compiling FreeTDS with the option --enable-msdblib will change FreeTDS to return the month as specified by Microsoft. FreeTDS 0.61 has a new feature where we can check for this option on compile time and I'm going to implement this feature as soon as I get back home. - Frank > Hi Frank! > > In the attached patches I fixed a bug when using the mssql extension > with FreeTDS and deactivated datetimeconvert. FreeTDS returns the month > starting with 0 (=jan), but the MSoft-lib starts with 1. > > I added another php.ini switch (datetimemsec) for adding milliseconds to > datetime-values when datetimeconvert is deactivated. This was a user > request, because he has otherwise no chance to get the milliseconds back > from the db. > > I hope that these patches are good enough for a commit, > > thanx, > bye, > -- > ------------------------------- ------------------------------------- > Michael Bretterklieber - Michael.Bretterklieber@jawa.at > JAWA Management Software GmbH - http://www.jawa.at > Liebenauer Hauptstr. 200 -------------- privat --------------- > A-8041 GRAZ GSM: ++43-(0)676-93 96 698 > Tel: ++43-(0)316-403274-12 E-mail: michael@bretterklieber.com > Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com > ------------------------------- ------------------------------------- > "...the number of UNIX installations has grown to 10, with more > expected..." - Dennis Ritchie and Ken Thompson, June 1972 >

« previous php.dev (#94725) next »