Index: openacs-4/packages/acs-core-docs/www/db-api.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/db-api.html,v diff -u -N -r1.50.2.5 -r1.50.2.6 --- openacs-4/packages/acs-core-docs/www/db-api.html 1 Dec 2015 14:38:40 -0000 1.50.2.5 +++ openacs-4/packages/acs-core-docs/www/db-api.html 2 Jan 2016 21:55:21 -0000 1.50.2.6 @@ -299,7 +299,7 @@
db_abort_transaction
Aborts all levels of a transaction. That is if this is called within
- several nested transactions, all of them are terminated. Use this insetead of
+ several nested transactions, all of them are terminated. Use this instead of
db_dml "abort" "abort transaction"
.
@@ -567,13 +567,13 @@
proc replace_the_foo { col } {
db_transaction {
- db_dml "delete from foo"
- db_dml "insert into foo(col) values($col)"
+ db_dml delete {delete from foo}
+ db_dml insert {insert into foo(col) values(:col)}
}
}
proc print_the_foo {} {
- doc_body_append "foo is [db_string "select col from foo"]<br>\n"
+ doc_body_append "foo is [db_string get_foo {select col from foo}]<br>\n"
}
replace_the_foo 8
@@ -582,7 +582,7 @@
db_transaction {
replace_the_foo 14
print_the_foo ; # Writes out "foo is 14"
- db_dml "insert into some_other_table(col) values(999)"
+ db_dml insert_foo {insert into some_other_table(col) values(999)}
...
db_abort_transaction
} on_error {