db_resultrows (public)

 db_resultrows [ -dbn dbn ]

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

Switches:
-dbn (optional)
The database name to use. If empty_string, uses the default database.
Returns:
the number of rows affected by the last DML command.

Partial Call Graph (max 5 caller/called nodes):
%3 test_xowiki_test_cases xowiki_test_cases (test xowiki) db_resultrows db_resultrows test_xowiki_test_cases->db_resultrows db_driverkey db_driverkey (public) db_resultrows->db_driverkey db_last_used_handle db_last_used_handle (private) db_resultrows->db_last_used_handle acs_mail_lite::bounce_ministry acs_mail_lite::bounce_ministry (private) acs_mail_lite::bounce_ministry->db_resultrows acs_mail_lite::log_mail_sending acs_mail_lite::log_mail_sending (private) acs_mail_lite::log_mail_sending->db_resultrows acs_mail_lite::record_bounce acs_mail_lite::record_bounce (public, deprecated) acs_mail_lite::record_bounce->db_resultrows acs_mail_lite::sweeper acs_mail_lite::sweeper (private) acs_mail_lite::sweeper->db_resultrows attribute::value_delete attribute::value_delete (public) attribute::value_delete->db_resultrows

Testcases:
xowiki_test_cases
Source code:
    set driverkey [db_driverkey $dbn]

    switch -- $driverkey {
        oracle {
            return [ns_ora resultrows [db_last_used_handle -dbn $dbn]]
        }
        postgresql {
            return [ns_pg ntuples [db_last_used_handle -dbn $dbn]]
        }
        nsodbc {
            error "db_resultrows is not supported for this database."
        }
        default {
            error "Unknown database driver.  db_resultrows is not supported for this database."
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: