You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by kr...@apache.org on 2011/09/05 11:31:07 UTC
svn commit: r1165221 -
/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java
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