mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 21:09:30 +02:00
+ fix for TBCD.GetDataSize
+ Improved error-message on unknown-parameters git-svn-id: trunk@3826 -
This commit is contained in:
parent
1e0d556788
commit
ef160f44a3
@ -2075,7 +2075,7 @@ end;
|
||||
function TBCDField.GetDataSize: Word;
|
||||
|
||||
begin
|
||||
result := sizeof(currency);
|
||||
result := sizeof(system.currency);
|
||||
end;
|
||||
|
||||
function TBCDField.GetDefaultWidth: Longint;
|
||||
|
@ -405,7 +405,11 @@ begin
|
||||
s := s + '(';
|
||||
for i := 0 to AParams.count-1 do if TypeStrings[AParams[i].DataType] <> 'Unknown' then
|
||||
s := s + TypeStrings[AParams[i].DataType] + ','
|
||||
else DatabaseErrorFmt(SUnsupportedParameter,[Fieldtypenames[AParams[i].DataType]],self);
|
||||
else
|
||||
begin
|
||||
if AParams[i].DataType = ftUnknown then DatabaseErrorFmt(SUnknownParamFieldType,[AParams[i].Name],self)
|
||||
else DatabaseErrorFmt(SUnsupportedParameter,[Fieldtypenames[AParams[i].DataType]],self);
|
||||
end;
|
||||
s[length(s)] := ')';
|
||||
buf := AParams.ParseSQL(buf,false,psPostgreSQL);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user