mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Fix typo in example. (#7100)
This commit is contained in:
parent
22f3f4ea71
commit
c382343143
@ -145,7 +145,7 @@ int main()
|
|||||||
/*IProvider* prov = master->getDispatcher();
|
/*IProvider* prov = master->getDispatcher();
|
||||||
IAttachment* att = NULL;*/
|
IAttachment* att = NULL;*/
|
||||||
IUtil* utl = master->getUtilInterface();
|
IUtil* utl = master->getUtilInterface();
|
||||||
IStatement* statemt = NULL;
|
IStatement* statement = NULL;
|
||||||
ITransaction* tra = NULL;
|
ITransaction* tra = NULL;
|
||||||
IBatch* batch = NULL;
|
IBatch* batch = NULL;
|
||||||
IBatchCompletionState* cs = NULL;
|
IBatchCompletionState* cs = NULL;
|
||||||
@ -185,7 +185,7 @@ int main()
|
|||||||
if (isc_dsql_prepare(st, &tr, &stmt, 0, sqlStmt1, 3, NULL))
|
if (isc_dsql_prepare(st, &tr, &stmt, 0, sqlStmt1, 3, NULL))
|
||||||
raiseError(status, st);
|
raiseError(status, st);
|
||||||
// and get it's interface
|
// and get it's interface
|
||||||
if (fb_get_statement_interface(st, &statemt, &stmt))
|
if (fb_get_statement_interface(st, &statement, &stmt))
|
||||||
raiseError(status, st);
|
raiseError(status, st);
|
||||||
|
|
||||||
// Message to store in a table
|
// Message to store in a table
|
||||||
@ -202,7 +202,7 @@ int main()
|
|||||||
pb->insertInt(&status, IBatch::TAG_RECORD_COUNTS, 1);
|
pb->insertInt(&status, IBatch::TAG_RECORD_COUNTS, 1);
|
||||||
|
|
||||||
// create batch
|
// create batch
|
||||||
batch = statemt->createBatch(&status, meta,
|
batch = statement->createBatch(&status, meta,
|
||||||
pb->getBufferLength(&status), pb->getBuffer(&status));
|
pb->getBufferLength(&status), pb->getBuffer(&status));
|
||||||
|
|
||||||
// fill batch with data record by record
|
// fill batch with data record by record
|
||||||
@ -223,8 +223,8 @@ int main()
|
|||||||
batch = NULL;
|
batch = NULL;
|
||||||
|
|
||||||
// unprepare statement
|
// unprepare statement
|
||||||
statemt->release();
|
statement->release();
|
||||||
statemt = NULL;
|
statement = NULL;
|
||||||
if (isc_dsql_free_statement(st, &stmt, DSQL_unprepare))
|
if (isc_dsql_free_statement(st, &stmt, DSQL_unprepare))
|
||||||
raiseError(status, st);
|
raiseError(status, st);
|
||||||
|
|
||||||
@ -237,7 +237,7 @@ int main()
|
|||||||
if (isc_dsql_prepare(st, &tr, &stmt, 0, sqlStmt2, 3, NULL))
|
if (isc_dsql_prepare(st, &tr, &stmt, 0, sqlStmt2, 3, NULL))
|
||||||
raiseError(status, st);
|
raiseError(status, st);
|
||||||
// and get it's interface
|
// and get it's interface
|
||||||
if (fb_get_statement_interface(st, &statemt, &stmt))
|
if (fb_get_statement_interface(st, &statement, &stmt))
|
||||||
raiseError(status, st);
|
raiseError(status, st);
|
||||||
|
|
||||||
// Message to store in a table
|
// Message to store in a table
|
||||||
@ -255,7 +255,7 @@ int main()
|
|||||||
pb->insertInt(&status, IBatch::TAG_BLOB_POLICY, IBatch::BLOB_ID_ENGINE);
|
pb->insertInt(&status, IBatch::TAG_BLOB_POLICY, IBatch::BLOB_ID_ENGINE);
|
||||||
|
|
||||||
// create batch
|
// create batch
|
||||||
batch = statemt->createBatch(&status, meta,
|
batch = statement->createBatch(&status, meta,
|
||||||
pb->getBufferLength(&status), pb->getBuffer(&status));
|
pb->getBufferLength(&status), pb->getBuffer(&status));
|
||||||
|
|
||||||
// create blob
|
// create blob
|
||||||
@ -283,8 +283,8 @@ int main()
|
|||||||
batch = NULL;
|
batch = NULL;
|
||||||
|
|
||||||
// unprepare statement
|
// unprepare statement
|
||||||
statemt->release();
|
statement->release();
|
||||||
statemt = NULL;
|
statement = NULL;
|
||||||
if (isc_dsql_free_statement(st, &stmt, DSQL_drop))
|
if (isc_dsql_free_statement(st, &stmt, DSQL_drop))
|
||||||
raiseError(status, st);
|
raiseError(status, st);
|
||||||
|
|
||||||
@ -312,8 +312,8 @@ int main()
|
|||||||
batch->release();
|
batch->release();
|
||||||
if (tra)
|
if (tra)
|
||||||
tra->release();
|
tra->release();
|
||||||
if (statemt)
|
if (statement)
|
||||||
statemt->release();
|
statement->release();
|
||||||
|
|
||||||
// close handles if not closed
|
// close handles if not closed
|
||||||
if (blb)
|
if (blb)
|
||||||
|
Loading…
Reference in New Issue
Block a user