View Issue Details

IDProjectCategoryView StatusLast Update
0001655Database Workbench v6Firebird Modulepublic2022-08-04 12:25
ReporterPaul Maliphant Assigned ToMartijn Tonies  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version5.4.4 
Fixed in Version6.1.0 
Summary0001655: Exception debugging a Firebird 2.5.8 Trigger
DescriptionTrigger
SET TERM ^^ ;
CREATE TRIGGER MILKING_DAILY_LIC_LACT_TOT FOR MILKING_DAILY ACTIVE BEFORE UPDATE POSITION 42 AS
declare diff float ;
declare adj float;
begin
  if ((new.cowpk = old.cowpk) and updating) then begin /* Error executing this line */
    if (old.LICLitres is not null) then begin /*Cups put back on ?*/
      diff = new.liclitres - old.liclitres ;
      if (ABS(diff) > 0.1) then begin
        adj = old.liclitres * -1.0;
        execute procedure P_COW_LACTATION_TOTALS_UPD(old.cowpk,adj,
        old.licfat, old.licprotein, old.liclactose, old.licscc, old.hw_map);
        new.liclitres = new.liclitres + old.liclitres;
      end
    end
  end
  execute procedure P_COW_LACTATION_TOTALS_UPD(new.cowpk,new.liclitres,
        new.licfat, new.licprotein, new.liclactose, new.licscc, new.hw_map);
end ^^
SET TERM ; ^^


---------------------------
Warning
---------------------------
Routine was aborted because of an exception, changes have been rolled back.
Exception message:


Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 143
)
SQL: /* TGDSDebugger.EvalExpression */ select count( * ) from RDB$DATABASE where ( ( ( cast(NULL as Integer) ) = ( cast(NULL as Integer) ) ) and 1 )

---------------------------
OK
---------------------------
Steps To ReproduceF8 on the first line of code in the trigger. See attached screen shot
TagsNo tags attached.

Relationships

duplicate of 0002039 closedMartijn Tonies Trigger debugger error with specific clause using pseudo variables 

Activities

Paul Maliphant

2018-12-19 03:36

reporter  

TriggerDebug.png (40,572 bytes)   
TriggerDebug.png (40,572 bytes)   

Issue History

Date Modified Username Field Change
2018-12-19 03:36 Paul Maliphant New Issue
2018-12-19 03:36 Paul Maliphant File Added: TriggerDebug.png
2022-01-12 13:35 Martijn Tonies Project Database Workbench v5 => Database Workbench v6
2022-08-04 12:25 Martijn Tonies Assigned To => Martijn Tonies
2022-08-04 12:25 Martijn Tonies Status new => closed
2022-08-04 12:25 Martijn Tonies Resolution open => duplicate
2022-08-04 12:25 Martijn Tonies Fixed in Version => 6.1.0
2022-08-04 12:25 Martijn Tonies Relationship added duplicate of 0002039