- bug fixed in Sampler class in computeSmartSampleWithThreshold method. table name formatted as schema."table" in order to recover the rows

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManager@101088 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-10-28 16:07:36 +00:00
parent 81c8975e6a
commit 17dfef9f1e
1 changed files with 5 additions and 5 deletions

View File

@ -927,10 +927,10 @@ public class Sampler {
// the full name equal to "schemaname.tablename" // the full name equal to "schemaname.tablename"
String tableName = ""; String tableName = "";
tableName = schemaName + "." + "\"" + tablename + "\""; tableName = schemaName + "." + "\"" + tablename + "\"";
query = String.format( query = String.format(
queryForSmartSampleWithThresholdOnTablePostgres, queryForSmartSampleWithThresholdOnTablePostgres,
listAttributes, tablename, indexes[i]); listAttributes, tableName, indexes[i]);
} }
// build the query for database mysql // build the query for database mysql
@ -938,10 +938,10 @@ public class Sampler {
// the full name equal to "dbname.tablename" // the full name equal to "dbname.tablename"
String tableName = ""; String tableName = "";
tableName = schemaName + "." + tablename; tableName = schemaName + "." + tablename;
query = String.format( query = String.format(
queryForSmartSampleWithThresholdOnTableMysql, queryForSmartSampleWithThresholdOnTableMysql,
listAttributes, tablename, indexes[i]); listAttributes, tableName, indexes[i]);
} }
AnalysisLogger.getLogger().debug( AnalysisLogger.getLogger().debug(