db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/platforms PlatformSybaseImpl.java
Date Tue, 20 Jan 2004 12:08:57 GMT
arminw      2004/01/20 04:08:57

  Modified:    src/java/org/apache/ojb/broker/platforms
                        PlatformSybaseImpl.java
  Log:
  remove ASA specific workaround
  
  Revision  Changes    Path
  1.5       +0 -27     db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseImpl.java
  
  Index: PlatformSybaseImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PlatformSybaseImpl.java	9 Jan 2003 17:01:34 -0000	1.4
  +++ PlatformSybaseImpl.java	20 Jan 2004 12:08:57 -0000	1.5
  @@ -79,31 +79,4 @@
       {
           return SYBASE_JOIN_SYNTAX;
       }
  -
  -
  -    /**
  -     * Sybase Adaptive Server Enterprise (ASE) support timestamp to a precision of 1/300th
of second.
  -     * Adaptive Server Anywhere (ASA) support timestamp to a precision of 1/1000000tho
of second.
  -     * Sybase JDBC driver (JConnect) retrieving timestamp always rounds to 1/300th sec.,
causing rounding
  -     * problems with ASA when retrieving Timestamp fields.
  -     * This work around was suggested by Sybase Support. Unfortunately it works only with
ASA.
  -     *
  -     * @author Lorenzo Nicora
  -     */
  -    public void initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn)
throws PlatformException
  -    {
  -        // Do origial init
  -        super.initializeJdbcConnection(jcd, conn);
  -        // Execute a statement setting the tempory option
  -        try
  -        {
  -            Statement stmt = conn.createStatement();
  -            stmt.executeUpdate("set temporary option RETURN_DATE_TIME_AS_STRING = On");
  -        }
  -        catch (SQLException e)
  -        {
  -            throw new PlatformException(e);
  -        }
  -    }
  -
   }
  
  
  

---------------------------------------------------------------------
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