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

prepared another syntax error

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