#1 2013-04-12 16:54:16

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

AV when a class is not in the model

I have created a TSQLRecord descendant and I forgeted putting this class in TSQLModel.

When running the application, I get a AV in this code:

  c := TClient.Create(DB, 1);   // I want the record with ID=1

if I rewrite the code as

  c := TClient.Create;
  try
    c.FillPrepare(DB, 'id=?', [1]);
    c.FillOne;
    ...
  finally
    c.Free;
  end

Then I get the appropriate error message "Class is missing in the model".

Offline

#2 2013-04-12 21:04:10

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: AV when a class is not in the model

Could you please create a ticket so that we may fix it?

This is a border case issue, but it does make sense to have an explicit exception!

Offline

#3 2013-04-13 16:40:15

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

Re: AV when a class is not in the model

Offline

#4 2013-04-14 12:58:40

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: AV when a class is not in the model

Should be fixed now.

I tried to check the table for most CRUD operations.

Thanks for the feedback!

Offline

Board footer

Powered by FluxBB