aboutsummaryrefslogtreecommitdiff
path: root/odb/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-23 10:53:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-23 10:53:46 +0200
commit4701df22146e4e4fc0c7fe58903fbd0482defcb5 (patch)
tree502bff26d72ddf0f70513079f33ba9c29c10a28e /odb/context.cxx
parent36863f5f31c202e45c8a406a321deb8d237cbc14 (diff)
Handle name truncation in PostgreSQL
Diffstat (limited to 'odb/context.cxx')
-rw-r--r--odb/context.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/context.cxx b/odb/context.cxx
index 4af13b7..e56b412 100644
--- a/odb/context.cxx
+++ b/odb/context.cxx
@@ -691,6 +691,12 @@ context (ostream& os_,
data_->sql_name_regex_[sql_name_sequence].assign (s.begin (), s.end ());
}
+ if (ops.statement_regex ().count (db) != 0)
+ {
+ strings const& s (ops.statement_regex ()[db]);
+ data_->sql_name_regex_[sql_name_statement].assign (s.begin (), s.end ());
+ }
+
if (ops.sql_name_regex ().count (db) != 0)
{
strings const& s (ops.sql_name_regex ()[db]);