ports/databases/mysql-connector-odbc/files/patch-driver_results.c
Max Khon 3f65f803c1 Fix build with unixODBC 2.2.14: in 2.2.14 signatures of several functions
(SQLExtendedFetch, SQLColAttribute, SQLColAttributeW) were fixed.

Approved by:    portmgr (marcus)
2009-01-27 05:13:10 +00:00

38 lines
1.6 KiB
C

--- driver/results.c.orig 2008-04-11 16:58:44.000000000 +0700
+++ driver/results.c 2009-01-27 00:01:01.000000000 +0600
@@ -1245,10 +1245,10 @@
*/
SQLRETURN SQL_API my_SQLExtendedFetch( SQLHSTMT hstmt,
SQLUSMALLINT fFetchType,
- SQLROWOFFSET irow,
+ SQLLEN irow,
SQLULEN *pcrow,
SQLUSMALLINT FAR *rgfRowStatus,
- bool upd_status )
+ my_bool upd_status )
{
ulong rows_to_fetch;
long cur_row, max_row;
@@ -1511,19 +1511,16 @@
SQLRETURN SQL_API SQLExtendedFetch( SQLHSTMT hstmt,
SQLUSMALLINT fFetchType,
- SQLROWOFFSET irow,
- SQLROWSETSIZE *pcrow,
+ SQLLEN irow,
+ SQLULEN *pcrow,
SQLUSMALLINT FAR *rgfRowStatus )
{
SQLRETURN rc;
- SQLULEN rows;
STMT_OPTIONS *options= &((STMT FAR *)hstmt)->stmt_options;
options->rowStatusPtr_ex= rgfRowStatus;
- rc= my_SQLExtendedFetch(hstmt, fFetchType, irow, &rows, rgfRowStatus, 1);
- if (pcrow)
- *pcrow= (SQLROWSETSIZE)rows;
+ rc= my_SQLExtendedFetch(hstmt, fFetchType, irow, pcrow, rgfRowStatus, 1);
return rc;
}