Search from autoinc id field with value 0

Hi,
Would it break aurelius logic if it wouldn't raise and exception in case where on is trying to search a record with 0 id,,
for example
lCustomer := lManager.find(aCustomer)
and aCustomer = 0.
now I get exception that Id not set on entity of class ....

of course we can and check i acustomer <>0 , but it's just that we have learned during 15years that table.findkey([aCustomer]) returns false even if acustomer = 0...
(just deploying hotfix to big customer, didn't test with "unformated" loytalty card :) )

1 Like

Hi Mika,

Check this out: existing Identifier with zero value - #2 by Farias_Anderson

HTH
Regards,

1 Like