Actions
Feature #1423
closedinvalidId feature
Start date:
09/06/2012
Due date:
% Done:
0%
Estimated time:
Description
There should be a function in Wt::Dbo::Dbo and/or Wt::Dbo::ptr like bool isTransient() or bool isInvalid() that would return
id() == Wt::Dbo::dbo_traits::invaidId()
Because there are different data types possible and different invalid Ids possible for different Dbos.
Don't you agree?
Updated by Koen Deforche about 12 years ago
- Target version changed from 3.2.3 to 3.3.0
Updated by Koen Deforche about 12 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
Updated by Michael Vilsker about 12 years ago
- Status changed from InProgress to Resolved
Updated by Saif Rehman almost 12 years ago
Since there are many types of primary key of a Dbo possible wouldn't it be more suitable to use the following code?
id() == Wt::Dbo::dbo_traits<C>::invaidId()
Updated by Saif Rehman almost 12 years ago
Oh sorry I thought it was using id == --1
Would this still work if the version field is disabled from the Dbo
Updated by Saif Rehman almost 12 years ago
Shouldn't it also be implemented in Wt::Dbo::Dbo
Updated by Koen Deforche almost 12 years ago
- Status changed from Resolved to Closed
Actions