aboutsummaryrefslogtreecommitdiff
path: root/odb/pragma.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-27 11:20:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-27 11:20:31 +0200
commita7bd7367e246ec5b6bb2e2f018a05173ff7e6301 (patch)
tree41e796b972320267f35fce07b9c77fd82029b3e8 /odb/pragma.hxx
parent8efcb4e093ec9faab36d49474fd3596a2ce90b13 (diff)
Add support for associating tables with views
Diffstat (limited to 'odb/pragma.hxx')
-rw-r--r--odb/pragma.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/pragma.hxx b/odb/pragma.hxx
index ba4aab8..0b09b43 100644
--- a/odb/pragma.hxx
+++ b/odb/pragma.hxx
@@ -52,10 +52,10 @@ struct pragma
operator< (pragma const& y) const
{
if (add == 0)
- return pragma_name < y.pragma_name;
+ return context_name < y.context_name;
else
- return pragma_name < y.pragma_name ||
- (pragma_name == y.pragma_name && loc < y.loc);
+ return context_name < y.context_name ||
+ (context_name == y.context_name && loc < y.loc);
}
std::string pragma_name; // Actual pragma name for diagnostics.