Skip to Content.
Sympa Menu

freetds - RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Castellano, Nicholas" <Nicholas_Castellano AT acml.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP
  • Date: Mon, 14 Oct 2002 13:10:43 -0400

So we probably need the SQLGetInfo() call to return a code indicating that
we don't support ExtendedFetch. Can you try this patch and let me know if
it makes any difference?

Cheers,
--nick

-----Original Message-----
From: bounce-freetds-145195 AT franklin.oit.unc.edu
[mailto:bounce-freetds-145195 AT franklin.oit.unc.edu]
Sent: Monday, October 14, 2002 12:05 PM
To: TDS Development Group
Subject: [freetds] RE: freetds-0.60 + unixODBC + sqlserver2000 + PHP


Lowden, James K wrote:
>>From: Helio Cavichiolo Jr [mailto:hcav AT terra.com.br]
>>Sent: October 14, 2002 9:22 AM
>>
>>As you can see here, in the PHP function call:
>>
>>#ifdef HAVE_SQL_EXTENDED_FETCH
>
> ^^^^^^^^^ This should be undefined, no?
>
>
>>/* 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);
>
>
> FreeTDS's ODBC library doesn't support ExtendedFetch. Why would
> HAVE_SQL_EXTENDED_FETCH be defined? I would expect this code not to
> be compiled (#ifdef tests FALSE).
>

Not if it is compiled against a driver manager. PHP has a lot of stuff
like this for direct linking against drivers.

--
Nick Gorham
Easysoft Limited http://www.easysoft.com


---
You are currently subscribed to freetds as: [Nicholas_Castellano AT acml.com]
To unsubscribe, forward this message to
$subst('Email.Unsub')


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that for certain accounts we do not accept
orders and/or instructions by e-mail, and for those accounts we will not be
responsible for carrying out such orders and/or instructions. Kindly refrain
from sending orders or instructions by e-mail unless you have confirmed that
we accept such communications for your account. Please also note that to
satisfy regulatory requirements we review the outgoing and incoming e-mail
correspondence of staff members serving certain functions.




? typescript
? rebuild.sh
? PWD.stpmdb
? PWD.s7intldb
? PWD.nts0090
? PWD.stbonddb
? PWD.ntsdev002
? src/apps/dd_table.fmt
? src/apps/dd_table.dat
? src/apps/dd_table_2.dat
? src/dblib/unittests/typescript
Index: src/odbc/odbc.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/odbc/odbc.c,v
retrieving revision 1.65
diff -u -u -r1.65 odbc.c
--- src/odbc/odbc.c 14 Oct 2002 08:29:17 -0000 1.65
+++ src/odbc/odbc.c 14 Oct 2002 17:09:54 -0000
@@ -2169,6 +2169,7 @@
default:
tdsdump_log(TDS_DBG_FUNC, "odbc:SQLGetInfo: "
"info option %d not supported\n", fInfoType);
+ return SQL_ERROR;
break;
}




Archive powered by MHonArc 2.6.24.

Top of Page