Fixed metadata access in RDBMSDataStoreMetadata
The SQL request in getAllValuesByType returned a single column of type array, but two columns of type string were expected.
@@ -131,7 +131,7 @@ public class RDBMSDataStoreMetadata implements DataStoreMetdata {
public Map<String,String> getAllValuesByType(String mdTableName, String space, String type){
Map<String, String> vals = null;
try{
- PreparedStatement stmt = conn.prepareStatement("SELECT (key,value) from "+mdTableName+" WHERE namespace = ? AND keytype = ?");
+ PreparedStatement stmt = conn.prepareStatement("SELECT key,value from "+mdTableName+" WHERE namespace = ? AND keytype = ?");
stmt.setString(1, space);
stmt.setString(2, type);
stmt.execute();
