Bug #4290 » 0001-Remove-size-from-remaining-Dbo-PtrRef-C-calls.patch
| src/Wt/Dbo/DbAction_impl.h | ||
|---|---|---|
|
"Wt::Dbo::dbo_traits<C>::surrogateIdField() != 0");
|
||
|
idField_ = true;
|
||
|
actPtr(PtrRef<C>(value, name, size, fkConstraints));
|
||
|
actPtr(PtrRef<C>(value, name, fkConstraints));
|
||
|
idField_ = false;
|
||
|
}
|
||
| ... | ... | |
|
void LoadDbAction<C>::actId(ptr<D>& value, const std::string& name, int size,
|
||
|
int fkConstraints)
|
||
|
{
|
||
|
actPtr(PtrRef<D>(value, name, size, fkConstraints));
|
||
|
actPtr(PtrRef<D>(value, name, fkConstraints));
|
||
|
dbo_.setId(value);
|
||
|
}
|
||
| ... | ... | |
|
void SaveDbAction<C>::actId(ptr<D>& value, const std::string& name, int size,
|
||
|
int fkConstraints)
|
||
|
{
|
||
|
actPtr(PtrRef<D>(value, name, size, fkConstraints));
|
||
|
actPtr(PtrRef<D>(value, name, fkConstraints));
|
||
|
/* Later, we may also want to support id changes ? */
|
||
|
if (pass_ == Self && isInsert_)
|
||
| ... | ... | |
|
void TransactionDoneAction::actId(ptr<C>& value, const std::string& name,
|
||
|
int size, int fkConstraints)
|
||
|
{
|
||
|
actPtr(PtrRef<C>(value, name, size, fkConstraints));
|
||
|
actPtr(PtrRef<C>(value, name, fkConstraints));
|
||
|
}
|
||
|
template<typename V>
|
||
| ... | ... | |
|
void SessionAddAction::actId(ptr<C>& value, const std::string& name,
|
||
|
int size, int fkConstraints)
|
||
|
{
|
||
|
actPtr(PtrRef<C>(value, name, size, fkConstraints));
|
||
|
actPtr(PtrRef<C>(value, name, fkConstraints));
|
||
|
}
|
||
|
template<typename V>
|
||
| ... | ... | |
|
void SetReciproceAction::actId(ptr<C>& value, const std::string& name,
|
||
|
int size, int fkConstraints)
|
||
|
{
|
||
|
actPtr(PtrRef<C>(value, name, size, fkConstraints));
|
||
|
actPtr(PtrRef<C>(value, name, fkConstraints));
|
||
|
}
|
||
|
template<typename V>
|
||
| ... | ... | |
|
void FromAnyAction::actId(ptr<C>& value, const std::string& name, int size,
|
||
|
int fkConstraints)
|
||
|
{
|
||
|
actPtr(PtrRef<C>(value, name, size, fkConstraints));
|
||
|
actPtr(PtrRef<C>(value, name, fkConstraints));
|
||
|
}
|
||
|
template<typename V>
|
||
| src/Wt/Dbo/ptr_impl.h | ||
|---|---|---|
|
SaveBaseAction action(*this, *mapping, statement, column);
|
||
|
field(action, id_,
|
||
|
mapping->naturalIdFieldName, mapping->naturalIdFieldSize);
|
||
|
field(action, id_, mapping->naturalIdFieldName);
|
||
|
column = action.column();
|
||
|
}
|
||
- « Previous
- 1
- 2
- Next »