View Issue Details

IDProjectCategoryView StatusLast Update
0000885Database Comparer VCLGeneralpublic2019-04-18 19:46
Reportershirokov Assigned Tobarry  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Fixed in Version6.2.0.1659 
Summary0000885: Access violation when loading the update script to the TIBSQLExec component.
DescriptionThe script parsing causes the AV exception.
The reason: the fData.Objs property is Nil (see the TIbParser.ParseFieldDesc method). The problem is reproduced when loading the "Skript.sql" (attached to this bugreport) and parsing the "Auftrags_StatusErmitteln" stored procedure. This procedure declares the "Erledigt" local variable of "d_DatumZeit" type. This domain type is not declared within the script. This script was produced by the Database Comparer demo (see DBComparer1.SQLExec.GetScript(MemoResult.Lines) in the "DBComparerDemoFib" project). Anyway, the script parsing should not raise AV. The standalone edition of the Database Comparer raises AV when loading this script as well.
Steps To ReproducePlace a new button on to the form in the DBComparerDemoFib demo project.

procedure TForm1.Button1Click(Sender: TObject);
begin
  IBSQLExec1.LoadFromFile('d:\Progects\DBComparer\Work\Skript.sql');
  //
end;
TagsNo tags attached.

Activities

shirokov

2015-11-09 12:37

administrator  

Skript.sql (529,836 bytes)

shirokov

2015-11-09 13:56

administrator  

DBs.7z (730,958 bytes)

shirokov

2015-11-09 13:59

administrator   ~0002192

The update script is valid and successfully updates the Target DB. The "d_DatumZeit" domain should not be in the update script because it was not changed.
So the error is in script loading and parsing. The problem is urgent because the user cannot update remote databases with saved script!

Issue History

Date Modified Username Field Change
2015-11-09 12:37 shirokov New Issue
2015-11-09 12:37 shirokov File Added: Skript.sql
2015-11-09 13:56 shirokov File Added: DBs.7z
2015-11-09 13:59 shirokov Note Added: 0002192
2016-02-03 23:48 barry Status new => resolved
2016-02-03 23:48 barry Fixed in Version => 6.2.0.1659
2016-02-03 23:48 barry Resolution open => fixed
2016-02-03 23:48 barry Assigned To => barry
2019-04-18 19:46 barry Status resolved => closed