Skip to Content.
Sympa Menu

freetds - [freetds] row_count

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "Freetds (E-mail)" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] row_count
  • Date: Wed, 19 Mar 2003 16:09:06 +0100

It seem this field is not very useful

$ grep row_count `find -name \*.[ch]`

(unittests rows omitted)

./src/odbc/odbc.c: *pcrow = resinfo->row_count;

./src/ctlib/blk.c:blk_rowxfer_mult(CS_BLKDESC * blkdesc, CS_INT * row_count)
./src/ctlib/ct.c: /* first row ie for resinfo->row_count == 1,
for which the address is temp_add itself. */
./src/ctlib/ct.c: int_val = resinfo->row_count;
./src/dblib/dblib.c: return tds->res_info->row_count;
./src/dblib/dblib.c: return resinfo->row_count;

./src/tds/token.c: info->row_count++;
./include/bkpublic.h:CS_RETCODE blk_rowxfer_mult(CS_BLKDESC * blkdesc,
CS_INT * row_count);
./include/tds.h: TDS_INT row_count;

This variable is initialized in mem.c (by memset) allocating the result set
and incremented when a row arrive. It's that correct ?

rows_affected seem more useful (and also work for insert/update, not only
select)

I don't know correct behaviour of native libraries...

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================



  • [freetds] row_count, ZIGLIO Frediano, 03/19/2003

Archive powered by MHonArc 2.6.24.

Top of Page