114 |
|
property DPB: IDPB read FDPB; |
115 |
|
public |
116 |
|
{Character Sets} |
117 |
+ |
function HasDefaultCharSet: boolean; |
118 |
+ |
function GetDefaultCharSetID: integer; |
119 |
|
function GetCharsetName(CharSetID: integer): AnsiString; |
120 |
|
function CharSetID2CodePage(CharSetID: integer; var CodePage: TSystemCodePage): boolean; |
121 |
|
function CodePage2CharSetID(CodePage: TSystemCodePage; var CharSetID: integer): boolean; |
123 |
|
function CharSetWidth(CharSetID: integer; var Width: integer): boolean; |
124 |
|
procedure RegisterCharSet(CharSetName: AnsiString; CodePage: TSystemCodePage; |
125 |
|
AllowReverseLookup:boolean; out CharSetID: integer); |
124 |
– |
property HasDefaultCharSet: boolean read FHasDefaultCharSet; |
126 |
|
property CharSetID: integer read FCharSetID; |
127 |
|
property CodePage: TSystemCodePage read FCodePage; |
128 |
|
end; |
278 |
|
case params[i].vtype of |
279 |
|
vtinteger : |
280 |
|
SQLParams[i].AsInteger := params[i].vinteger; |
281 |
+ |
vtInt64: |
282 |
+ |
SQLParams[i].AsInt64 := params[i].VInt64^; |
283 |
+ |
{$IF declared (vtQWord)} |
284 |
+ |
vtQWord: |
285 |
+ |
SQLParams[i].AsInt64 := params[i].VQWord^; |
286 |
+ |
{$IFEND} |
287 |
|
vtboolean : |
288 |
|
SQLParams[i].AsBoolean := params[i].vboolean; |
289 |
|
vtchar : |
293 |
|
vtCurrency: |
294 |
|
SQLParams[i].AsDouble := params[i].VCurrency^; |
295 |
|
vtString : |
296 |
< |
SQLParams[i].AsString := params[i].VString^; |
296 |
> |
SQLParams[i].AsString := strpas(PChar(params[i].VString)); |
297 |
|
vtPChar : |
298 |
|
SQLParams[i].AsString := strpas(params[i].VPChar); |
299 |
|
vtAnsiString : |
300 |
< |
SQLParams[i].AsString := AnsiString(params[i].VAnsiString^); |
300 |
> |
SQLParams[i].AsString := strpas(PAnsiChar(params[i].VAnsiString)); |
301 |
|
vtVariant: |
302 |
|
SQLParams[i].AsVariant := params[i].VVariant^; |
303 |
+ |
vtWideChar: |
304 |
+ |
SQLParams[i].AsString := UTF8Encode(WideCharLenToString(@params[i].VWideChar,1)); |
305 |
+ |
vtPWideChar: |
306 |
+ |
SQLParams[i].AsString := UTF8Encode(strpas(PWideChar(params[i].VPWideChar))); |
307 |
+ |
vtWideString: |
308 |
+ |
SQLParams[i].AsString := UTF8Encode(strpas(PWideChar(params[i].VWideString))); |
309 |
+ |
vtUnicodeString: |
310 |
+ |
SQLParams[i].AsString := UTF8Encode(strpas(PWideChar(params[i].VUnicodeString))); |
311 |
|
else |
312 |
|
IBError(ibxeInvalidVariantType,[nil]); |
313 |
|
end; |
478 |
|
Result := OpenBlob(Transaction,Field.GetBlobMetadata, Field.AsQuad,BPB); |
479 |
|
end; |
480 |
|
|
481 |
+ |
function TFBAttachment.HasDefaultCharSet: boolean; |
482 |
+ |
begin |
483 |
+ |
Result := FHasDefaultCharSet |
484 |
+ |
end; |
485 |
+ |
|
486 |
+ |
function TFBAttachment.GetDefaultCharSetID: integer; |
487 |
+ |
begin |
488 |
+ |
Result := FCharsetID; |
489 |
+ |
end; |
490 |
+ |
|
491 |
|
function TFBAttachment.GetCharsetName(CharSetID: integer): AnsiString; |
492 |
|
var i: integer; |
493 |
|
begin |