From 36863f5f31c202e45c8a406a321deb8d237cbc14 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Jan 2015 14:37:10 +0200 Subject: Add support for warning about SQL name truncations in Oracle Also detect and issue diagnostics when such truncations lead to name conflicts. --- odb/relational/model.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'odb/relational/model.cxx') 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 (); } -- cgit v1.1