summaryrefslogtreecommitdiff
path: root/odb/location.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-25 12:13:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-27 10:30:15 +0200
commit923639283d2bae0b82cb605fa4680a3058c9d973 (patch)
tree3c122b70129cdd2b502e1f7056eac896c109f03a /odb/location.cxx
parentadfa9bbd04cd3571932ee7675344ca723bfa1eab (diff)
Add support for defining indexes
New db pragma qualifier: index. New tests: common/index, mysql/index, pgsql/index.
Diffstat (limited to 'odb/location.cxx')
-rw-r--r--odb/location.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/location.cxx b/odb/location.cxx
new file mode 100644
index 0000000..ba8d9a7
--- /dev/null
+++ b/odb/location.cxx
@@ -0,0 +1,14 @@
+// file : odb/location.cxx
+// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
+// license : GNU GPL v3; see accompanying LICENSE file
+
+#include <odb/location.hxx>
+#include <odb/diagnostics.hxx>
+
+location::
+location (location_t l)
+ : file (location_file (l)),
+ line (location_line (l)),
+ column (location_column (l))
+{
+}