summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/relational/pgsql/source.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/relational/pgsql/source.cxx b/odb/relational/pgsql/source.cxx
index b1fe16d..5807625 100644
--- a/odb/relational/pgsql/source.cxx
+++ b/odb/relational/pgsql/source.cxx
@@ -971,7 +971,11 @@ namespace relational
// Statment names.
//
string stmt_decl ("const char* const " + scope + "::");
- string stmt_prefix (flat_name (m.fq_name ()));
+
+ // Prefix top-object name to avoid conflicts with inherited
+ // member statement names.
+ //
+ string stmt_prefix (top_object->fq_name () + m.fq_name ());
os << stmt_decl << endl
<< "insert_one_name = " <<