*** DRAFT ***

SQLite Requirement Matrix Details
data_count.html

Index Summary Markup Original


R-20643-25656-58463-39709-46255-05856-32679-34239 tcl slt th3 src

The sqlite3_data_count(P) interface returns the number of columns in the current row of the result set of prepared statement P.

th3/th3util.c:4006

/* IMP: R-20643-25656 */
# EVIDENCE-OF: R-20643-25656 The sqlite3_data_count(P) interface returns
# the number of columns in the current row of the result set of prepared
# statement P.

R-59498-62062-55834-19518-04943-47390-59895-15219 tcl slt th3 src

If prepared statement P does not have results ready to return (via calls to the sqlite3_column() family of interfaces) then sqlite3_data_count(P) returns 0.

th3/req1/datacnt01.test:33

/* IMP: R-59498-62062 */
# EVIDENCE-OF: R-59498-62062 If prepared statement P does not have
# results ready to return (via calls to the sqlite3_column() family of
# interfaces) then sqlite3_data_count(P) returns 0.

R-18465-63076-46355-46123-39901-27541-22994-57422 tcl slt th3 src

The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer.

th3/req1/datacnt01.test:51

/* IMP: R-18465-63076 */
# EVIDENCE-OF: R-18465-63076 The sqlite3_data_count(P) routine also
# returns 0 if P is a NULL pointer.

R-47358-05964-44521-01667-50829-29935-00197-29054 tcl slt th3 src

The sqlite3_data_count(P) routine returns 0 if the previous call to sqlite3_step(P) returned SQLITE_DONE.

/* IMP: R-47358-05964 */
# EVIDENCE-OF: R-47358-05964 The sqlite3_data_count(P) routine returns 0
# if the previous call to sqlite3_step(P) returned SQLITE_DONE.

R-13480-46087-00976-25355-37821-19976-64055-41594 tcl slt th3 src

The sqlite3_data_count(P) will return non-zero if previous call to sqlite3_step(P) returned SQLITE_ROW, except in the case of the PRAGMA incremental_vacuum where it always returns zero since each step of that multi-step pragma returns 0 columns of data.

th3/req1/datacnt01.test:14

/* IMP: R-13480-46087 */
# EVIDENCE-OF: R-13480-46087 The sqlite3_data_count(P) will return
# non-zero if previous call to sqlite3_step(P) returned SQLITE_ROW,
# except in the case of the PRAGMA incremental_vacuum where it always
# returns zero since each step of that multi-step pragma returns 0
# columns of data.