aboutsummaryrefslogtreecommitdiff
path: root/bpkg/package.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-09 17:23:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-09 18:11:23 +0300
commitab8c659fd2e7d1938740472327cf56843e4fd90a (patch)
tree89c17f192b17ffa3de0bd5ae2e8525f3c47130eb /bpkg/package.hxx
parenteeb4dd62fe81070217511a754ca539325bdd9d78 (diff)
Adapt to repository_url(string) ctor throwing invalid_argument for empty string
Diffstat (limited to 'bpkg/package.hxx')
-rw-r--r--bpkg/package.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg/package.hxx b/bpkg/package.hxx
index 6b19203..ea48045 100644
--- a/bpkg/package.hxx
+++ b/bpkg/package.hxx
@@ -231,9 +231,9 @@ namespace bpkg
repository_type type;
};
- #pragma db map type(repository_url) as(string) \
- to((?).string ()) \
- from(bpkg::repository_url (?))
+ #pragma db map type(repository_url) as(string) \
+ to((?).string ()) \
+ from((?).empty () ? bpkg::repository_url () : bpkg::repository_url (?))
#pragma db map type(repository_type) as(string) \
to(to_string (?)) \