mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 01:19:07 +02:00
* Fix from Dokkie8844. Fix blob access in Firebird 4.0, fixes issue #40506
This commit is contained in:
parent
370883c86a
commit
f18d1deb08
@ -1063,11 +1063,10 @@ var
|
||||
function GetBlobCharset(TableName,ColumnName: Pointer): smallint;
|
||||
var TransactionHandle: pointer;
|
||||
BlobDesc: TISC_BLOB_DESC;
|
||||
Global: array[0..31] of AnsiChar;
|
||||
begin
|
||||
TransactionHandle := TIBCursor(cursor).TransactionHandle;
|
||||
if isc_blob_lookup_desc(@FStatus[0], @FDatabaseHandle, @TransactionHandle,
|
||||
TableName, ColumnName, @BlobDesc, @Global) <> 0 then
|
||||
TableName, ColumnName, @BlobDesc, nil) <> 0 then
|
||||
CheckError('Blob Charset', FStatus);
|
||||
Result := BlobDesc.blob_desc_charset;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user