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):
- 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