Skip to Content.
Sympa Menu

freetds - [freetds] add dbiscount() in dblib.c

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: LacaK <lacak AT zoznam.sk>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] add dbiscount() in dblib.c
  • Date: Mon, 23 Aug 2010 09:20:06 +0200

Hi,
Microsoft implements for his DB-Library together with dbcount() also dbiscount().
See please: http://msdn.microsoft.com/en-us/library/aa937021(v=SQL.80).aspx

Can you please add dbiscount() into dblib.c and header in sybdb.h ?
IMHO implementation is simple (if I understand correctly dbcount() ;-)):

DBBOOL
dbiscount(DBPROCESS * dbproc)
{
tdsdump_log(TDS_DBG_FUNC, "dbiscount(%p)\n", dbproc);
CHECK_PARAMETER(dbproc, SYBENULL, -1);

return dbproc && dbproc->tds_socket && dbproc->tds_socket->rows_affected != TDS_NO_COUNT;
}

Please let me known if it is acceptable.
TIA
-Laco.



  • [freetds] add dbiscount() in dblib.c, LacaK, 08/23/2010

Archive powered by MHonArc 2.6.24.

Top of Page