freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Helio Cavichiolo Jr <hcav AT terra.com.br>
- To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
- Subject: RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP
- Date: Mon, 14 Oct 2002 11:21:30 -0200
As you can see here, in the PHP function call:
#ifdef HAVE_SQL_EXTENDED_FETCH
/* Solid doesn't have ExtendedFetch, if DriverManager is used, get Info,
whether Driver supports ExtendedFetch */
rc = SQLGetInfo(conn->hdbc, SQL_FETCH_DIRECTION, (void *),
srollopts, sizeof(scrollopts), NULL);
if (rc == SQL_SUCCESS) {
if ((result->fetch_abs = (scrollopts &
SQL_FD_FETCH_ABSOLUTE))) {
/* Try to set CURSOR_TYPE to dynamic. Driver will replace
this with other
type if not possible.
*/
if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE,
SQL_CURSOR_DYNAMIC)
== SQL_ERROR) {
odbc_sql_error(conn, result->stmt, " SQLSetStmtOption");
SQLFreeStmt(result->stmt, SQL_DROP);
efree(result);
RETURN_FALSE;
}
}
} else {
result->fetch_abs = 0;
}
#endif
Em Seg 14 Out 2002 11:16, you wrote:
> I've tried just returning SQL_SUCESS, but it don't work. Anyway I tried
> your fix compiling freetds from cvs, but I got the same error.
> It looks that PHP needs you set the working option.
>
> Helio
>
> Em Seg 14 Out 2002 06:54, you wrote:
> > 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
>
> -------------------------------------------------------
>
>
> ---
> You are currently subscribed to freetds as: [hcav AT terra.com.br]
> To unsubscribe, forward this message to
> $subst('Email.Unsub')
-
RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP
, (continued)
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/13/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Peter Harvey, 10/13/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, ZIGLIO Frediano, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, ZIGLIO Frediano, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Tom Sillence, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Lowden, James K, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, ZIGLIO Frediano, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Tom Sillence, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Lowden, James K, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Nick Gorham, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Castellano, Nicholas, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Nick Gorham, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Castellano, Nicholas, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Frediano Ziglio, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Frediano Ziglio, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Castellano, Nicholas, 10/14/2002
- RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP, Helio Cavichiolo Jr, 10/14/2002
Archive powered by MHonArc 2.6.24.