Skip to content

Commit

Permalink
IDBSchema not designed for case-sensitive databases #19
Browse files Browse the repository at this point in the history
  • Loading branch information
estepper committed Oct 28, 2023
1 parent 790acde commit b565adc
Showing 1 changed file with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1107,20 +1107,15 @@ private void logOtherSchemaInfo(Connection connection, String schemaName)
}
}

String message = "The CDO system tables are not found";

if (StringUtil.isEmpty(schemaName))
{
message += "! ";
}
else
{
message += " in schema " + DBUtil.quoted(schemaName) + "! ";
}

if (!schemaNames.isEmpty())
{
message += "Other schemas may contain a CDO repository: ";
String message = "The CDO system tables are not found";
if (!StringUtil.isEmpty(schemaName))
{
message += " in schema " + DBUtil.quoted(schemaName);
}

message += "! Other schemas may contain a CDO repository: ";
boolean first = true;

for (String name : schemaNames)
Expand All @@ -1136,12 +1131,12 @@ private void logOtherSchemaInfo(Connection connection, String schemaName)

message += name;
}
}

OM.LOG.info(message.trim());
OM.LOG.info("This can indicate an attempt to open an existing database with a newer CDO server.\n" //
+ "It may help to specify 'schemaName=...' and 'prependSchemaName=true' in cdo-server.xml,\n"//
+ "and/or the system property '-Dorg.eclipse.net4j.db.DISABLE_QUOTED_NAMES=true'");
OM.LOG.info(message.trim());
OM.LOG.info("This can indicate an attempt to open an existing database with a newer CDO server.\n" //
+ "It may help to specify 'schemaName=...' and 'prependSchemaName=true' in cdo-server.xml,\n"//
+ "and/or the system property '-Dorg.eclipse.net4j.db.DISABLE_QUOTED_NAMES=true'\n");
}
}
catch (SQLException ex)
{
Expand Down

0 comments on commit b565adc

Please sign in to comment.