Skip to content
Snippets Groups Projects
Commit 10235463 authored by Valerio Pastore's avatar Valerio Pastore
Browse files

refix setActiveData

parent e60d514e
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,9 @@
</plugins>
</build>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<exec.mainClass>com.mycompany.controlpanelmvn.MainFrame</exec.mainClass>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
......@@ -317,10 +317,8 @@ public class db {
try {
Statement statement = this.db.createStatement();
ResultSet result = null;
result = statement.executeQuery("UPDATE " + table + " SET " + column + " = '" + text + "' WHERE active = 1");
statement.executeUpdate("UPDATE " + table + " SET " + column + " = '" + text + "' WHERE active = 1");
if (statement != null) statement.close();
if (result != null) result.close();
} catch (SQLException e) {
System.err.println("[Error in SET ACTIVE DATA]");
System.err.println(e.getMessage());
......
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