Skip to content
Snippets Groups Projects
Commit e8903444 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

prepared another syntax error

parent df7c8f8b
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ public class DbReader extends ProducerStage<IMonitoringRecord> {
connection = DriverManager.getConnection(this.connectionString);
PreparedStatement getIndexTable = null;
try {
getIndexTable = connection.prepareStatement("SELECT * from ?1");
getIndexTable = connection.prepareStatement("SELECT * from ?");
getIndexTable.setString(1, this.tablePrefix);
ResultSet indexTable = null;
try { // NOCS (nested try)
......@@ -159,7 +159,7 @@ public class DbReader extends ProducerStage<IMonitoringRecord> {
throws SQLException, MonitoringRecordException {
PreparedStatement selectRecord = null;
try {
selectRecord = connection.prepareStatement("SELECT * from ?1");
selectRecord = connection.prepareStatement("SELECT * from ?");
selectRecord.setString(1, tablename);
ResultSet records = null;
try {
......
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