aboutsummaryrefslogtreecommitdiff
path: root/pgsql
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-11 11:02:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-11 11:02:29 +0200
commit82fba993cd1525dc7096e48ba3685f067ca9b896 (patch)
tree741c94e12fdd036166e448ecf9367addc09dbd28 /pgsql
parent6b8def06796d1e4fc9e6e7e75ce59bccf6899261 (diff)
Fix array regex to match arrays without bounds
Diffstat (limited to 'pgsql')
-rw-r--r--pgsql/custom/test.hxx2
1 files changed, 1 insertions, 1 deletions
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<int>. The other half of
// this mapping is in traits.hxx (value_traits<std::vector<int>, id_string>).
//
-#pragma db map type("INTEGER *\\[(\\d+)\\]") \
+#pragma db map type("INTEGER *\\[(\\d*)\\]") \
as("TEXT") \
to("(?)::INTEGER[$1]") \
from("(?)::TEXT")