Subject | Code branching incorrectly in procedure TIB_Column.SetAsVariant( const NewValue: Variant ); in IB_Components |
---|---|
Author | Adrian Wreyford |
Post date | 2009-08-28T20:48:03Z |
Dear Jason,
I see you are no longer on skype.
The problem arises due to an omitted; in the above procedure:
IB_Components...
procedure TIB_Column.SetAsVariant( const NewValue: Variant ); ...
Lines: 42610 - 42622 reads as follows:
SQL_BLOB,
SQL_BLOB_: if AsString <> NewValue then
begin
WasChanged := true;
AsString := NewValue;
end
// SQL_ARRAY,
// SQL_ARRAY_: {should be overridden} ;
else
raise EIB_Error.CreateWithSender( Statement,
Format( E_UNSUPPORTED_COLUMN,
[ SQLType ]));
end;
And should read:
SQL_BLOB,
SQL_BLOB_: if AsString <> NewValue then
begin
WasChanged := true;
AsString := NewValue;
end;//*****************************************;Added here to branch out correctly ******************************
// SQL_ARRAY,
// SQL_ARRAY_: {should be overridden} ;
else
raise EIB_Error.CreateWithSender( Statement,
Format( E_UNSUPPORTED_COLUMN,
[ SQLType ]));
end;
Regards
Adrian Wreyford
[Non-text portions of this message have been removed]
I see you are no longer on skype.
The problem arises due to an omitted; in the above procedure:
IB_Components...
procedure TIB_Column.SetAsVariant( const NewValue: Variant ); ...
Lines: 42610 - 42622 reads as follows:
SQL_BLOB,
SQL_BLOB_: if AsString <> NewValue then
begin
WasChanged := true;
AsString := NewValue;
end
// SQL_ARRAY,
// SQL_ARRAY_: {should be overridden} ;
else
raise EIB_Error.CreateWithSender( Statement,
Format( E_UNSUPPORTED_COLUMN,
[ SQLType ]));
end;
And should read:
SQL_BLOB,
SQL_BLOB_: if AsString <> NewValue then
begin
WasChanged := true;
AsString := NewValue;
end;//*****************************************;Added here to branch out correctly ******************************
// SQL_ARRAY,
// SQL_ARRAY_: {should be overridden} ;
else
raise EIB_Error.CreateWithSender( Statement,
Format( E_UNSUPPORTED_COLUMN,
[ SQLType ]));
end;
Regards
Adrian Wreyford
[Non-text portions of this message have been removed]