List:MySQL++« Previous MessageNext Message »
From:Rick Gutleber Date:October 30 2008 3:20pm
Subject:InsertPolicy and Transactions
View as plain text  
Does it really make sense for allow_transactions() to be part of the 
policy or should it be a bool option passed in to insertfrom( )?

The reason I ask is because it seems silly to have to have two different 
InsertPolicy objects that differ only in whether transactions are 
allowed or not. 

In other words, the question of whether you want transactions seems 
orthogonal to how you want the insert to work.

Or was the intention that the InsertPolicy tells you whether a 
transaction would be a "good idea", i.e., it may generate more than one 
SQL statement?






Thread
InsertPolicy and TransactionsRick Gutleber30 Oct
  • Re: InsertPolicy and TransactionsWarren Young31 Oct
    • Re: InsertPolicy and TransactionsRick Gutleber31 Oct
      • Re: InsertPolicy and TransactionsWarren Young31 Oct
        • Re: InsertPolicy and TransactionsRick Gutleber3 Nov