mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
(SQLExtendedFetch, SQLColAttribute, SQLColAttributeW) were fixed. Approved by: portmgr (marcus)
38 lines
1.6 KiB
C
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;
|
|
}
|