Project

General

Profile

Actions

Feature #1423

closed

invalidId feature

Added by Saif Rehman about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Michael Vilsker
Target version:
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?

Actions #1

Updated by Koen Deforche about 12 years ago

  • Target version changed from 3.2.3 to 3.3.0
Actions #2

Updated by Koen Deforche about 12 years ago

  • Status changed from New to InProgress
  • Assignee set to Michael Vilsker
Actions #3

Updated by Michael Vilsker about 12 years ago

  • Status changed from InProgress to Resolved
Actions #4

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()
Actions #5

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

Actions #6

Updated by Saif Rehman almost 12 years ago

Shouldn't it also be implemented in Wt::Dbo::Dbo

Actions #7

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF