db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1165221 - /db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java
Date Mon, 05 Sep 2011 09:31:07 GMT
Author: kristwaa
Date: Mon Sep  5 09:31:07 2011
New Revision: 1165221

URL: http://svn.apache.org/viewvc?rev=1165221&view=rev
Log:
DERBY-5402: Assignment instead of comparison in Driver20.getPropertyInfo

Removed incorrect assignment-operation (which always evaluated as true) in
if-statement.

Patch file: n/a

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java?rev=1165221&r1=1165220&r2=1165221&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java Mon Sep  5 09:31:07
2011
@@ -134,7 +134,7 @@ public abstract class Driver20 extends I
 		boolean encryptDB = Boolean.valueOf(finfo.getProperty(Attribute.DATA_ENCRYPTION)).booleanValue();
	
 		String encryptpassword = finfo.getProperty(Attribute.BOOT_PASSWORD);
 
-		if (dbname.length() == 0 || (encryptDB = true && encryptpassword == null)) {
+		if (dbname.length() == 0 || (encryptDB && encryptpassword == null)) {
 
 			// with no database name we can have shutdown or a database name
 



Mime
View raw message