function
Library: Database access (OMDB legacy)
Include: omdb.xin |
define external function dbCommit value dbDatabase database
Argument definitions
Use dbCommit to commit all the insert, delete, or update operations performed since the last dbCommit or dbRollback.
You must include the following line at the beginning of your OmniMark program:
include "omdb.xin"
The dbDatabase object database must be:
You may call the dbCommit function if the transaction type for the database is autocommit without generating an exception.
process local dbDatabase this-db local dbTable course local stream SQL-insert initial { "insert into Course values " || " ( '503', 'Learning Through Pain' )" } local stream course-data variable initial { '504' with key 'CID', 'What is that Sound?' with key 'CourseName' } set this-db to dbOpenODBC 'dbDemo' set course to dbTableOpen this-db table 'Course' dbSetTransactionType this-db to DB_MANUAL_COMMIT dbExecute this-db SQL SQL-insert dbTableInsert course from course-data dbCommit this-db