RE: Re: MSSQL extension BugFix FreeTDS, datetime with ...
| From: | Jochen Daum | Date: | Tue, 24 Jun 2003 22:22:10 +0000 |
| Subject: | RE: Re: MSSQL extension BugFix FreeTDS, datetime with ... | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17683@lists.php.net to get a copy of this message | ||
Hi Frank, all!
I have been using the patch below - the datetimemsec switch - provided
by Michael. I now need to recompile PHP and can't get it to work
again. How can I check, if it has made his way into a newer version? I
grepp'd the 4.3.2 release for "datetimemsec", but it didn't return a
thing.
If it hasn't made its way, how would I apply it again? I believe the
problem is, that it is a patch against some daily image of the CVS and
not against the 4.3.0 release. The way I tried didn't work:
- Download 4.3.0
- Replace php_mssql.c and php_mssql.h with the versions used in the
patch (1.86.2.15 and 1.23.4.7), then applied the patch.
Returns: "One hunk has not been applied" and shows the whole diff for
php_mssql.h
Thanks for any help.
Jochen
> 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
> >
>
> Web Architect/Database Developer
> CANS Ltd.
> 5 Heb Pl
> Takanini, Auckland
> (09) 279 5777 jochen.daum@cans.co.nz