8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Fix error in batch example.

This commit is contained in:
Adriano dos Santos Fernandes 2021-08-19 15:07:49 -03:00
parent 66ffcd33fe
commit 88d6baa2f5

View File

@ -134,7 +134,7 @@ static void print_cs(ThrowStatusWrapper& status, IBatchCompletionState* cs, IUti
case IBatchCompletionState::EXECUTE_FAILED: case IBatchCompletionState::EXECUTE_FAILED:
if (!pr1) if (!pr1)
{ {
printf("Message Status\n", p); printf("Message Status\n");
pr1 = true; pr1 = true;
} }
printf("%5u Execute failed\n", p); printf("%5u Execute failed\n", p);
@ -147,7 +147,7 @@ static void print_cs(ThrowStatusWrapper& status, IBatchCompletionState* cs, IUti
default: default:
if (!pr1) if (!pr1)
{ {
printf("Message Status\n", p); printf("Message Status\n");
pr1 = true; pr1 = true;
} }
printf("%5u Updated %d record(s)\n", p, s); printf("%5u Updated %d record(s)\n", p, s);
@ -171,7 +171,7 @@ static void print_cs(ThrowStatusWrapper& status, IBatchCompletionState* cs, IUti
text[sizeof(text) - 1] = 0; text[sizeof(text) - 1] = 0;
if (!pr2) if (!pr2)
{ {
printf("\nDetailed errors status:\n", p); printf("\nDetailed errors status:\n");
pr2 = true; pr2 = true;
} }
printf("Message %u: %s\n", p, text); printf("Message %u: %s\n", p, text);