The syntax for declaring large object (LOB) locator host variables in C or C++ is:
>>-+----------+--+----------+--SQL TYPE IS----------------------> +-auto-----+ +-const----+ +-extern---+ '-volatile-' +-static---+ '-register-' .-,----------------. V | >--+-BLOB_LOCATOR---+----+--------------+-+--;----------------->< +-CLOB_LOCATOR---+ '-| Variable |-' '-DBCLOB_LOCATOR-' Variable .---------------------. V | |----+-*-+--+----------+-+--variable-name--+--------------+-----| '-&-' +-const----+ '-= init-value-' '-volatile-'
CLOB locator example (other LOB locator type declarations are similar):
SQL TYPE IS CLOB_LOCATOR my_locator;
sqluint32 my_locator;