Check DB.isConnected to execute the update
This commit is contained in:
parent
818898577f
commit
1237adb2fb
|
@ -35,13 +35,18 @@ public class SignDatabaseBuild
|
|||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger (SignDatabaseBuild.class);
|
||||
|
||||
public static void main(String[] args)
|
||||
public static void main(String[] args)
|
||||
{
|
||||
Adempiere.startupEnvironment(false);
|
||||
CLogMgt.setLevel(Level.FINE);
|
||||
s_log.info("Sign Database Build");
|
||||
s_log.info("-------------------");
|
||||
|
||||
if (! DB.isConnected()) {
|
||||
s_log.info("No DB Connection");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
PreparedStatement updateStmt = null;
|
||||
try {
|
||||
String upd = "UPDATE AD_System SET LastBuildInfo = ?";
|
||||
|
|
Loading…
Reference in New Issue