added date_type_t, time_type_t and timestamp, ensure allocated postgres resources are released, split repository into basic_repository and repository.
This commit is contained in:
@@ -28,7 +28,8 @@ void attribute::name( const std::string& n ) {
|
||||
}
|
||||
|
||||
std::string attribute::full_name() const {
|
||||
return owner_ ? owner_->name() + "." + name_ : name_;
|
||||
const auto owner = owner_.lock();
|
||||
return owner ? owner->name() + "." + name_ : name_;
|
||||
}
|
||||
|
||||
const utils::field_attributes &attribute::attributes() const {
|
||||
@@ -48,7 +49,7 @@ utils::basic_type attribute::type() const {
|
||||
}
|
||||
|
||||
std::shared_ptr<object> attribute::owner() const {
|
||||
return owner_;
|
||||
return owner_.lock();
|
||||
}
|
||||
|
||||
void attribute::change_type(const utils::basic_type type, const utils::field_attributes& attr) {
|
||||
|
||||
Reference in New Issue
Block a user