Skip to content
Snippets Groups Projects
Commit 8860a971 authored by brinn's avatar brinn
Browse files

[CFX-206] Errors when specifying the same user twice when sharing a file

improve: use a more efficient database query when finding the users to share a file with (used to do two full table scans of the user table!)
(merged from 10.06.x, r16793)

SVN: 16896
parent 6026580a
No related branches found
No related tags found
No related merge requests found
...@@ -515,6 +515,18 @@ public class DatabaseConfigurationContext implements DisposableBean ...@@ -515,6 +515,18 @@ public class DatabaseConfigurationContext implements DisposableBean
this.databaseKind = StringUtils.trim(databaseKind); this.databaseKind = StringUtils.trim(databaseKind);
} }
/**
* Returns the {@link DatabaseEngine}.
*/
public DatabaseEngine getDatabaseEngine() throws ConfigurationFailureException
{
if (databaseEngine == null)
{
throw new ConfigurationFailureException("No database engine defined.");
}
return databaseEngine;
}
/** /**
* Returns the code of the database engine. * Returns the code of the database engine.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment