1 package org.apache.ojb.broker.platforms; 2 3 17 18 import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor; 19 20 import java.sql.Connection ; 21 import java.sql.SQLException ; 22 import java.sql.Statement ; 23 24 36 public class PlatformSybaseASAImpl extends PlatformSybaseImpl 37 { 38 47 public void initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn) throws PlatformException 48 { 49 super.initializeJdbcConnection(jcd, conn); 51 try 53 { 54 Statement stmt = conn.createStatement(); 55 stmt.executeUpdate("set temporary option RETURN_DATE_TIME_AS_STRING = On"); 56 } 57 catch (SQLException e) 58 { 59 throw new PlatformException(e); 60 } 61 } 62 63 } 64 | Popular Tags |