3819 |
|
their values } |
3820 |
|
SQL_VARYING, SQL_TEXT: |
3821 |
|
begin |
3822 |
< |
FirebirdAPI.CharSetWidth(getCharSetID,CharSetSize); |
3823 |
< |
CharSetName := FirebirdAPI.GetCharsetName(getCharSetID); |
3824 |
< |
FirebirdAPI.CharSetID2CodePage(getCharSetID,FieldCodePage); |
3822 |
> |
if not Database.Attachment.CharSetWidth(getCharSetID,CharSetSize) then |
3823 |
> |
CharSetSize := 1; |
3824 |
> |
CharSetName := Database.Attachment.GetCharsetName(getCharSetID); |
3825 |
> |
Database.Attachment.CharSetID2CodePage(getCharSetID,FieldCodePage); |
3826 |
|
FieldSize := GetSize div CharSetSize; |
3827 |
|
FieldType := ftString; |
3828 |
|
end; |
3884 |
|
FieldSize := sizeof (TISC_QUAD); |
3885 |
|
if (getSubtype = 1) then |
3886 |
|
begin |
3887 |
< |
FirebirdAPI.CharSetWidth(getCharSetID,CharSetSize); |
3888 |
< |
CharSetName := FirebirdAPI.GetCharsetName(getCharSetID); |
3889 |
< |
FirebirdAPI.CharSetID2CodePage(getCharSetID,FieldCodePage); |
3887 |
> |
if not Database.Attachment.CharSetWidth(getCharSetID,CharSetSize) then |
3888 |
> |
CharSetSize := 1; |
3889 |
> |
CharSetName := Database.Attachment.GetCharsetName(getCharSetID); |
3890 |
> |
Database.Attachment.CharSetID2CodePage(getCharSetID,FieldCodePage); |
3891 |
|
FieldType := ftMemo; |
3892 |
|
end |
3893 |
|
else |