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 StatementManager.java
Date Fri, 06 Jun 2003 16:19:26 GMT
brj         2003/06/06 09:19:25

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        StatementManager.java
  Log:
  fixed sqltype for locking fields
  patch by roger janssen
  
  Revision  Changes    Path
  1.35      +3 -3      db-ojb/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java
  
  Index: StatementManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- StatementManager.java	16 May 2003 19:26:28 -0000	1.34
  +++ StatementManager.java	6 Jun 2003 16:19:25 -0000	1.35
  @@ -584,11 +584,11 @@
   			Object val = values[i];
   			if (val != null)
   			{
  -				stmt.setObject(index, values[i], SqlHelper.getSqlTypeRwNonPk(cld, i));
  +				stmt.setObject(index, values[i], SqlHelper.getSqlTypeLocking(cld, i));
   			}
   			else
   			{
  -				stmt.setNull(index, SqlHelper.getSqlTypeRwNonPk(cld, i));
  +				stmt.setNull(index, SqlHelper.getSqlTypeLocking(cld, i));
   			}
   
   			index++;
  
  
  

Mime
View raw message