From 3adfab3887b21103d58ee81103515251810bb1c1 Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 12 Mar 2008 09:15:13 +0000 Subject: [PATCH] Improve comments on batching. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@26283 72102866-910b-0410-8b05-ffd578937521 --- SQLClient.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SQLClient.h b/SQLClient.h index d1e5b12..5793a30 100644 --- a/SQLClient.h +++ b/SQLClient.h @@ -1019,10 +1019,10 @@ extern unsigned SQLClientTimeTick(); /** * Returns a transaction object configured to handle batching and * execute part of a batch of statements if execution of the whole - * fails.
+ * using the [SQLTransaction-executeBatch] method fails.
* If stopOnFailure is YES than execution of the transaction will * stop with the first statement to fail, otherwise it will execute - * all the statements it can, skipping any failued statements. + * all the statements it can, skipping any failed statements. */ - (SQLTransaction*) batch: (BOOL)stopOnFailure; @@ -1317,6 +1317,9 @@ extern unsigned SQLClientTimeTick(); * subsidiary transactions may succeed or fail atomically depending * on their individual attributes. *

+ *

If the transaction was not created using [SQLClient-batch:], then + * calling this method is equivalent to calling the -execute method. + *

* The method returns the number of statements which actually succeeded. */ - (unsigned) executeBatch;