Project

General

Profile

Feature #1423

invalidId feature

Added by Saif Rehman about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
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?

#1

Updated by Koen Deforche almost 8 years ago

  • Target version changed from 3.2.3 to 3.3.0
#2

Updated by Koen Deforche almost 8 years ago

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

Updated by Michael Vilsker almost 8 years ago

  • Status changed from InProgress to Resolved
#4

Updated by Saif Rehman almost 8 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()
#5

Updated by Saif Rehman almost 8 years ago

Oh sorry I thought it was using id == --1

Would this still work if the version field is disabled from the Dbo

#6

Updated by Saif Rehman almost 8 years ago

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

#7

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF