[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetds
Subject:    [freetds] RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP
From:       ZIGLIO Frediano <Frediano.Ziglio () vodafoneomnitel ! it>
Date:       2002-10-14 8:54:48
[Download RAW message or body]

> 
> I'm still waiting that a God's soon can help me on this.
> I've identified the problem, but don't know how to correct it.
> I have PHP compiled as cgi and as Apache module. Both with 
> same compiling 
> options (except for cgi option).
> Using PHP as CGI I can run a script that connects to a 
> SQLServer via unixODBC 
> + freetds without problems, but when I try it with PHP as 
> Apache module, it 
> crashes because during a select preparation, PHP calls a 
> freetds function 
> called SQLSetStmtAttr with SQL_CURSOR_TYPE option, still not 
> implemented.
> It looks that just returning the supported one to PHP would 
> be enough, but I 
> don't know how to do this.
> I tried just placing this inside the case:
> 
> SQL_CURSOR_TYPE:
>   break;
> 

Friday I wrote a small fix for this. I committed it to cvs this morning. It
simply return success setting forward cursors. If PHP want to use other
cursor it return error. IMHO this is the correct behaviour. 

If you want to use PHP with FreeTDS think about using ctlib. ctlib work
better than odbc (for now).

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================

---
You are currently subscribed to freetds as: [freetds@progressive-comp.com]
To unsubscribe, forward this message to leave-freetds-113879Q@franklin.oit.unc.edu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic