If you set the schema on a logical connection obtained from EmbedPooledConnection, that schema will also be the current schema for subsequent logical connections obtained from the same EmbedPooledConnection.
Description
If you set the schema on a logical connection obtained from EmbedPooledConnection, that schema will also be the current schema for subsequent logical connections obtained from the same EmbedPooledConnection.
DERBY-3690: EmbedPooledConnection doesn't reset schema when creating a new logical connection.
Fixes the bug by resetting the schema in GLCC.resetFromPool, and adds two regression tests.
Patch file: DERBY-3690-1b-reset_schema.diff
DERBY-3690: EmbedPooledConnection doesn't reset schema when creating a new logical connection.
Merged revision 660404 (DERBY-3690-1b-reset_schema.diff) from trunk.
DERBY-3327 / DERBY-3690: Made GLCC cache the initial default schema descriptor.
This fix is an excerpt from issue 3327, and the code was extracted from the '4-full-e' patch.
The relevant commit on trunk is revision 643920.
Patch file: DERBY-3327-5a-extracted_initial_schema_patch.diff
Patch was extracted from a patch contributed by Dag H. Wanvik.