[dev] kronolith MS-SQL support patch proposal

Ben Chavet ben at horde.org
Sun Sep 17 00:26:23 PDT 2006


Quoting Matt Selsky <selsky at columbia.edu>:

> On Sun, Sep 17, 2006 at 01:53:48AM -0500, Ben Chavet wrote:
>
>> Quoting Chuck Hagenbuch <chuck at horde.org>:
>>
>> >Sounds a lot like we need to set the date format in the db "session"
>> >correctly, like we already do for oci8 and pgsql in the _initConn()
>> >function.
>>
>> Tried that.  No love.
>
> What about "SET DATEFORMAT ymd;"?  Seems like that should work from
> http://www.analysisandsolutions.com/code/dates.htm

Unbelievable...I set "mssql.datetimeconvert = Off" in my php.ini, and  
suddenly that works.  I _know_ I've tried that before.  The only  
difference that I can think of is that I'm using a newer version of  
php, and perhaps a newer freetds.

So, forget my patch (I'm glad I posted it here before committing it,  
otherwise I'd have to go through the hassle of reverting...I hate  
reverting).  I'll see if I can narrow down what made it work, and put  
what I find up on the wiki sometime.

--Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: PGP Digital Signature
Url : http://lists.horde.org/archives/dev/attachments/20060917/33495a49/attachment.bin


More information about the dev mailing list