Small. Fast. Reliable.
Choose any three.

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/req1/datacnt01.test:14   th3/th3util.c:3545

/* 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-24854-24731-07056-48016-36151-48843-43846-53234 tcl slt th3 src

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

th3/req1/datacnt01.test:32

/* IMP: R-24854-24731 */
# EVIDENCE-OF: R-24854-24731 If prepared statement P does not have
# results ready to return (via calls to the sqlite3_column_*() 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:53

/* 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.

th3/req1/datacnt01.test:36

/* 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.

/* 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.