@@ -0,0 +1,842 @@
+package sfBugs;%0A%0A%0Aimport java.sql.Connection;%0Aimport java.sql.ResultSet;%0Aimport java.sql.SQLException;%0Aimport java.sql.Statement;%0A%0Apublic class Bug2948672 %7B%0A%09public static int getRowsCount(Connection dbConnection, String tableName)%0A%09   %7B%0A%09      String sqlStatementString;%0A%09      Statement sqlStatement;%0A%09      ResultSet rs;%0A%09      int rowCount = 0;%0A%0A%09      try%0A%09      %7B%0A%09         sqlStatement = dbConnection.createStatement();%0A%09         sqlStatementString = %22SELECT COUNT(*) FROM %22 + tableName;%0A%09         // System.out.println(sqlStatementString);%0A%0A%09         rs = sqlStatement.executeQuery(sqlStatementString);%0A%09         rs.next();%0A%09         rowCount = rs.getInt(1);%0A%0A%09         rs.close();%0A%09         sqlStatement.close();%0A%09         return rowCount;%0A%09      %7D%0A%09      catch (SQLException e)%0A%09      %7B%0A%09         return rowCount;%0A%09      %7D%0A%09   %7D%0A%0A%7D%0A

add test case