8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00
This commit is contained in:
alexpeshkoff 2015-02-27 15:42:53 +00:00
parent 62d26f6297
commit 88f3e7e266
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ int main()
unsigned char* buffer = new unsigned char[l];
// fetch records from cursor and print them
for (int line = 0; curs->fetchNext(&status, buffer) == IStatus::FB_OK; ++line)
for (int line = 0; curs->fetchNext(&status, buffer) == IStatus::RESULT_OK; ++line)
{
if (line % 10 == 0)
{

View File

@ -126,7 +126,7 @@ int main()
unsigned char* buffer = new unsigned char[l];
// fetch records from cursor
while (curs->fetchNext(&status, buffer) == IStatus::FB_OK)
while (curs->fetchNext(&status, buffer) == IStatus::RESULT_OK)
{
for (unsigned j = 0; j < f; ++j)
{
@ -227,7 +227,7 @@ void MyField::print(ThrowStatusWrapper* st, IAttachment* att, ITransaction* tra,
for (;;)
{
int cc = blob->getSegment(st, sizeof(segbuf), segbuf, &len);
if (cc != IStatus::FB_OK && cc != IStatus::FB_SEGMENT)
if (cc != IStatus::RESULT_OK && cc != IStatus::RESULT_SEGMENT)
break;
fwrite(segbuf, sizeof(char), len, stdout);
}