db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql SqlQueryStatement.java
Date Tue, 08 Jul 2003 17:31:59 GMT
brj         2003/07/08 10:31:59

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  fixed problem with empty criteria (by oliver matz)
  
  Revision  Changes    Path
  1.43      +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
  
  Index: SqlQueryStatement.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- SqlQueryStatement.java	25 Jun 2003 18:49:33 -0000	1.42
  +++ SqlQueryStatement.java	8 Jul 2003 17:31:59 -0000	1.43
  @@ -352,7 +352,7 @@
               where = null;
           }
   
  -        if (where != null || crit != null)
  +        if (where != null || (crit != null && !crit.isEmpty()))
           {
               stmt.append(" WHERE ");
               appendClause(where, crit, stmt);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message