-
We moved from 32-bit ASE 15.0.2 to 64-bit ASE 15.0.3 (RHEL AS4U8) and Sybase reports a SEGV on a very limited number of transactions. The same source works correctly if we use jconnect (jconn3) from Sybase but we prefer the additional functionality provided by jtds.
We were originally on 1.2.2 but also experience the problem with 1.2.4.
Any ideas or suggestions to help progress...
2009-11-11 19:37:18 UTC by ssmith-cvg
-
We could always switch the Calendar instance in ConnectionJDBC2.java to a private static ThreadLocal which should mirror the behaviour in 1.2.4. 1.2.2 did not use ThreadLocal, which was only introduced in 1.2.3 to fix issue 1955499.
Is there any particular facet of the patch that you are concerned about, or are you just not 100% confident until more tests are passed?
I'll try and get started...
2009-11-11 00:06:13 UTC by grimlock81
-
I just took a look at the patch. I currently see two problems here. First, the patch (as you already pointed out) moves from ThreadLocal objects to synchronizing local Calendar instances, thus (maybe heavily, depending on usage) degrading performance. Second, I'm still unsure whether the patch really provides completely correct behavior.
I'll have to dig a bit deeper into this and maybe...
2009-11-10 17:19:05 UTC by ickzon
-
Sorry I didn't realise I wasn't logged in. The previous comment was made by me.
2009-11-10 01:12:54 UTC by grimlock81
-
Yes I applied the patch to 1.2.2 and ran all unit tests (the ones supplied with 1.2.2 and the ones introduced in the patch). In addition, I also ran the test case I submitted for bug [2887672].
They all passed except for one test. The test that failed was DatabaseMetaDataTest.testProcedureColumns() but this also failed before the patch was applied.
I've also had a look at the code, and I'm...
2009-11-10 01:10:45 UTC by nobody
-
Ah. I'm using java 1.6, and need to specify JDBC30DataSource=true in the connection pool properties in glassfish, since JDBC4 is not actually implemented.
2009-11-09 21:31:35 UTC by perilandmishap
-
I'd like to use jtds as the driver for a JTA persistence unit in Glassfish. I've created the datasource and can connect to it, but everything goes belly up as soon as I try to create an entity manager:
@PersistenceUnit(unitName = "DoormanPU")
protected EntityManagerFactory emf;
protected EntityManager em;
@PostConstruct
public void initialize(){
em =...
2009-11-09 21:02:52 UTC by perilandmishap
-
Seems you simply missed to define a column name. The following should work:
WITH myCte AS (SELECT 1 AS FOO) SELECT * FROM myCte.
2009-11-09 10:21:42 UTC by ickzon
-
Unfortunately, I did not yet find the time to look into the time conversion issue. If I got you right, this patch should fix bug [2887672]. Did you already have the time to give it a try?.
2009-11-09 09:09:25 UTC by ickzon
-
The test has been fixed in CVS.
2009-11-06 08:26:02 UTC by ickzon