commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject cvs commit: jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/sql StatementUtils.java
Date Mon, 28 Oct 2002 18:19:07 GMT
husted      2002/10/28 10:19:07

  Modified:    scaffold/src/java/org/apache/commons/scaffold/sql
                        StatementUtils.java
  Log:
  + StatementUtils,StorageBeanBase: Fix countLike/columnLike methods
  
  Revision  Changes    Path
  1.4       +3 -3      jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/sql/StatementUtils.java
  
  Index: StatementUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/sql/StatementUtils.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StatementUtils.java	28 Oct 2002 15:18:20 -0000	1.3
  +++ StatementUtils.java	28 Oct 2002 18:19:07 -0000	1.4
  @@ -487,11 +487,11 @@
               String resource,
               int column,
               String command,
  -            Object key)
  +            String key)
           throws SQLException {
   
           Object[] parameters = new Object[1];
  -        parameters[0] = new String("%" + key.toString() + "%");
  +        parameters[0] = new String("%" + key + "%");
   
           return getColumn(resource,column,command,parameters);
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message