From 732dd69e4d9e1b70edffad9829e34d84155cd91b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 18 Jul 2017 14:55:38 +0300 Subject: Adapt to non-optional buildtab target --- libbrep/build.hxx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'libbrep/build.hxx') diff --git a/libbrep/build.hxx b/libbrep/build.hxx index 7f0aba6..7edf70c 100644 --- a/libbrep/build.hxx +++ b/libbrep/build.hxx @@ -146,13 +146,9 @@ namespace brep // target_triplet // - using optional_target_triplet = optional; - - #pragma db map type(optional_target_triplet) as(optional_string) \ - to((?) ? (?)->string () : brep::optional_string ()) \ - from((?) \ - ? butl::target_triplet (*(?)) \ - : brep::optional_target_triplet ()) + #pragma db map type(butl::target_triplet) as(string) \ + to((?).string ()) \ + from(butl::target_triplet (?)) // operation_results // @@ -176,7 +172,7 @@ namespace brep optional agent_fingerprint, optional agent_challenge, string machine, string machine_summary, - optional target); + butl::target_triplet); build_id id; @@ -206,10 +202,7 @@ namespace brep string machine; string machine_summary; - - // Default for the machine if absent. - // - optional target; + butl::target_triplet target; // Note that the logs are stored as std::string/TEXT which is Ok since // they are UTF-8 and our database is UTF-8. -- cgit v1.1