From 94e1b8b7a338d3486cfa154677fc29db3b30b7ca Mon Sep 17 00:00:00 2001
From: Dmitry Yemanov
IBatch*
+ IBatch*
createBatch(StatusType* status, ITransaction* transaction, unsigned
stmtLength, const char* sqlStmt, unsigned dialect, IMessageMetadata*
- inMetadata, unsigned
IEvents* queEvents(StatusType* status, IEventCallback* callback, unsigned length, const unsigned char* events) – replaces isc_que_events() @@ -1951,7 +1951,6 @@ possible buffer size (one set by TAG_BUFFER_BYTES_SIZE)
Batch interface. It contains more or less (depending upon parameters passed when Batch was created) detailed information about the results of batch execution. -{
uint getSize(StatusType* status) – returns the total number of @@ -2377,14 +2376,13 @@ with execution of SQL statements.
unsigned getMessageLength(StatusType* status) - returns length of message buffer (use it to allocate memory for the buffer).
-unsigned
+ unsigned
getAlignment(StatusType* status) – returns alignment required for
- message buffer.
unsigned - getAlignedLength(StatusType* - status) – returns length of message buffer taking into an account + message buffer.
+unsigned + getAlignedLength(StatusType* status) – returns length of message buffer taking into an account alignment requirements (use it to allocate memory for an array of - buffers and navigate through that array).
+ buffers and navigate through that array).
@@ -2426,18 +2424,18 @@ message or construct metadata from the beginning.
IMessageMetadata* getMetadata(StatusType* status) – get MessageMetadata interface built by this builder.
-void
+ void
setField(StatusType* status, uint index, const string field) – set
- name of a field / column.
void + name of a field / column.
+void setRelation(StatusType* status, uint index, const string relation) – - set name of the relation from which the field was selected.
-void + set name of the relation from which the field was selected.
+void setOwner(StatusType* status, uint index, const string owner) – set - name of that relation owner.
-void + name of that relation owner.
+void setAlias(StatusType* status, uint index, const string alias) – set - alias name of the field in related statement.
+ alias name of the field in related statement.
@@ -2639,6 +2637,11 @@ of isc_stmt_handle. This interface is returned by openCursor() call
in IAttachment or IStatement.
All fetch calls except fetchNext() work only for bidirectional
(opened with CURSOR_TYPE_SCROLLABLE flag) result set.
Items +accepted in getInfo() call:
+INF_RECORD_COUNT +– number of records stored inside a scrollable cursor, or -1 for a uni-directional cursor.
+
int
fetchNext(StatusType* status, void* message) – fetch next record,
@@ -2673,6 +2676,10 @@ All fetch calls except fetchNext() work only for bidirectional
void
close(StatusType* status) – close result set, releases interface
on success. void
+ getInfo(StatusType* status, unsigned itemsLength, const unsigned
+ char* items, unsigned bufferLength, unsigned char* buffer) –
+ retrieve information about result set.
@@ -2733,7 +2740,7 @@ interface – replaces (partially) isc_stmt_handle.
IResultSet*
+ IResultSet*
openCursor(StatusType* status, ITransaction* transaction,
IMessageMetadata* inMetadata, void* inBuffer, IMessageMetadata*
outMetadata, unsigned flags) – executes SQL statement potentially
@@ -2741,8 +2748,8 @@ interface – replaces (partially) isc_stmt_handle.
IBatch* + cursor setting it's value to Istatement::CURSOR_TYPE_SCROLLABLE.
+IBatch* createBatch(StatusType* status, IMessageMetadata* inMetadata, uint parLength, const uchar* par) – creates Batch interface to SQL statement with input parameters making it possible @@ -2750,10 +2757,10 @@ interface – replaces (partially) isc_stmt_handle.
of input data is defined by inMetadata parameter, leaving it NULL makes batch use default format from this interface. Parameters block may be passed to createBatch() making it possible to adjust batch - behavior. -void + behavior.
+void setCursorName(StatusType* status, const char* name) – replaces - isc_dsql_set_cursor_name(). + isc_dsql_set_cursor_name().
void free(StatusType* status) – free statement, releases interface on @@ -3793,4 +3800,4 @@ release of it.