106 |
|
|
107 |
|
procedure GetBlobInfo(hBlobHandle: PISC_BLOB_HANDLE; var NumSegments: Int64; var MaxSegmentSize, |
108 |
|
TotalSize: Int64; var BlobType: Short); |
109 |
+ |
function GetBlobCharSetID(hDB_Handle: TISC_DB_HANDLE; hTR_Handle: TISC_TR_HANDLE; |
110 |
+ |
tableName, columnName: PChar): short; |
111 |
|
procedure ReadBlob(hBlobHandle: PISC_BLOB_HANDLE; Buffer: PChar; BlobSize: Int64); |
112 |
|
procedure WriteBlob(hBlobHandle: PISC_BLOB_HANDLE; Buffer: PChar; BlobSize: Int64); |
113 |
|
|
151 |
|
end; |
152 |
|
end; |
153 |
|
|
154 |
+ |
function GetBlobCharSetID(hDB_Handle: TISC_DB_HANDLE; |
155 |
+ |
hTR_Handle: TISC_TR_HANDLE; tableName, columnName: PChar): short; |
156 |
+ |
var desc: TISC_BLOB_DESC; |
157 |
+ |
uGlobal: array [0..31] of char; |
158 |
+ |
begin |
159 |
+ |
if isc_blob_lookup_desc(StatusVector,@hDB_Handle,@hTR_Handle, |
160 |
+ |
tableName,columnName,@desc,@uGlobal) > 0 then |
161 |
+ |
IBDatabaseError; |
162 |
+ |
|
163 |
+ |
Result := desc.blob_desc_charset; |
164 |
+ |
end; |
165 |
+ |
|
166 |
|
procedure ReadBlob(hBlobHandle: PISC_BLOB_HANDLE; Buffer: PChar; BlobSize: Int64); |
167 |
|
var |
168 |
|
CurPos: Int64; |