From 82fba993cd1525dc7096e48ba3685f067ca9b896 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 11 Jul 2012 11:02:29 +0200 Subject: Fix array regex to match arrays without bounds --- pgsql/custom/test.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgsql/custom/test.hxx b/pgsql/custom/test.hxx index 1f83031..68b6dd6 100644 --- a/pgsql/custom/test.hxx +++ b/pgsql/custom/test.hxx @@ -42,7 +42,7 @@ operator== (const point& a, const point& b) // Map INTEGER[] PostgreSQL type to std::vector. The other half of // this mapping is in traits.hxx (value_traits, id_string>). // -#pragma db map type("INTEGER *\\[(\\d+)\\]") \ +#pragma db map type("INTEGER *\\[(\\d*)\\]") \ as("TEXT") \ to("(?)::INTEGER[$1]") \ from("(?)::TEXT") -- cgit v1.1