Re: So, Derby works...

2020-07-09 Thread Rick Hillegas
If we were implementing all of this now, we would not separate AutoloadedDriver from EmbeddedDriver. But Derby co-evolved with the JDK from the start. By the time that Java introduced driver autoloading, we already had legacy customers whose applications we did not want to disturb. We did not

Re: So, Derby works...

2020-07-08 Thread Russell Bateman
The mock driver supports a sort of bogus URL ("jdbc:mock") that it recognizes for its purpose which is only to respond to a single query with canned data (whereas I'll be able to populate Derby with as much and whatever data I ever want). Of course, its driver doesn't ever do anything "real,"

Re: So, Derby works...

2020-07-08 Thread Rick Hillegas
It's hard to say what's going on, but the instability in your experiments is hard to reconcile against the deterministic code paths involved in JDBC autoloading. I can only speculate about what is causing this instability: 1) What JDBC URLs does your MockDriver claim to support? 2) Is

So, Derby works...

2020-07-08 Thread Russell Bateman
...again, don't know what I changed.* I'm only depending on /derby-10.15.2.0.jar/. What I think is going on is an artifact of being side-by-side with another JDBC driver implementation. I was hoping to keep the original mocked test driver working alongside the Derby implementation at least