diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-22 14:37:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-22 14:37:10 +0200 |
commit | 36863f5f31c202e45c8a406a321deb8d237cbc14 (patch) | |
tree | 73ddb6aa8d7d5c5ae3a4d0b47a7e9415b6787359 /odb/relational/model.cxx | |
parent | 823ec53170fa7092bb0b88db13a3c5e64bf14159 (diff) |
Add support for warning about SQL name truncations in Oracle
Also detect and issue diagnostics when such truncations lead
to name conflicts.
Diffstat (limited to 'odb/relational/model.cxx')
-rw-r--r-- | odb/relational/model.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/odb/relational/model.cxx b/odb/relational/model.cxx index 6a65803..d7c2bd8 100644 --- a/odb/relational/model.cxx +++ b/odb/relational/model.cxx @@ -107,14 +107,11 @@ namespace relational << endl; if (e.dup.kind () == "index") - error (d) << "use #pragma db index to change one of the names" - << endl; + info (d) << "use #pragma db index to change its name" << endl; else if (e.dup.kind () == "table") - error (d) << "use #pragma db table to change one of the names" - << endl; + info (d) << "use #pragma db table to change its name" << endl; else - error (d) << "use #pragma db column to change its name" - << endl; + info (d) << "use #pragma db column to change its name" << endl; throw operation_failed (); } |