Contents Index RevokeConnectFrom method SetDatabaseID method

UltraLite Static C++ User's Guide
  C++ API Reference
    ULConnection class

Rollback method


Prototype 

bool  Rollback( )

Description 

Rolls back outstanding changes to the database.

Returns 

true (1) if successful.

false (0) if unsuccessful.

Example 

The following code inserts a value to the database, but then rolls back the change.

productTable.Open( &conn );
productTable.SetProd_id( 2 );
productTable.SetPrice( 3000 );
productTable.SetProd_name( "8' 2x4 Studs x1000" );
productTable.Insert();
conn.Rollback();
See also 

Commit method


Contents Index RevokeConnectFrom method SetDatabaseID method