<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-356</id>
	<title>Nabble - Derby</title>
	<updated>2009-12-15T19:21:18Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Derby-f356.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Derby-f356.html" />
	<subtitle type="html">Apache Derby is Apache's Java relational database. Derby home is &lt;a href=&quot;http://incubator.apache.org/derby/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26805688</id>
	<title>[jira] Commented: (DERBY-4272) SQL Authorization Support for dblook</title>
	<published>2009-12-15T19:21:18Z</published>
	<updated>2009-12-15T19:21:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12791157#action_12791157&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12791157#action_12791157&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Dag H. Wanvik commented on DERBY-4272:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;Thank, Hiranya! 
&lt;br&gt;Hopefully we can by joined efforts make those missing parts of the test code ready in time for 10.6. I'll have a look asap.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; SQL Authorization Support for dblook
&lt;br&gt;&amp;gt; ------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4272
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4272&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4272&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Tools
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Any
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Hiranya Jayathilaka
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Hiranya Jayathilaka
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: DERBY-4272-changes-u1.txt, DERBY-4272-changes-u2.txt, DERBY-4272-changes-u3.txt, DERBY-4272-changes-u4.txt, DERBY-4272-changes-u5.txt, DERBY-4272-changes-u6.txt, DERBY-4272-u1.patch, DERBY-4272-u2.patch, DERBY-4272-u3.patch, DERBY-4272-u4.patch, DERBY-4272-u5.patch, DERBY-4272-u6.patch, dhw-sample-1.sql, new.sql, old.sql
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Currently dblook suffers from two major shortcomings.
&lt;br&gt;&amp;gt; 1. dblook doesn't take the object dependencies into consideration when generating DDL scripts
&lt;br&gt;&amp;gt; 2. dblook doesn't have any support for SQL authorization
&lt;br&gt;&amp;gt; I intend to fix these two issues and improve dblook so that the DDL scripts generated by dblook can be executed without errors under all conditions.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4272%29-SQL-Authorization-Support-for-dblook-tp24023597p26805688.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803204</id>
	<title>[jira] Commented: (DERBY-4471) Left outer join reassociation rewrite gives wrong result</title>
	<published>2009-12-15T14:45:18Z</published>
	<updated>2009-12-15T14:45:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12791002#action_12791002&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12791002#action_12791002&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Dag H. Wanvik commented on DERBY-4471:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;Seen all the way back to 10.0; not a regression.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Left outer join reassociation rewrite gives wrong result
&lt;br&gt;&amp;gt; --------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4471
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4471&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4471&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: SQL
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Dag H. Wanvik
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4471-junit-repro.diff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The following script and output shows the problem:
&lt;br&gt;&amp;gt; &amp;gt; create table r(c1 char(1));
&lt;br&gt;&amp;gt; &amp;gt; create table s(c1 char(1), c2 char(1));
&lt;br&gt;&amp;gt; &amp;gt; create table t(c1 char(1));
&lt;br&gt;&amp;gt; &amp;gt; insert into r values 'a';
&lt;br&gt;&amp;gt; &amp;gt; insert into s values ('b', default);
&lt;br&gt;&amp;gt; &amp;gt; insert into t values ('c');
&lt;br&gt;&amp;gt; &amp;gt; select * from s left outer join t on s.c2=t.c1 or s.c2 is null;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; b &amp;nbsp; |NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; select * from r left outer join s on r.c1=s.c1;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL
&lt;br&gt;&amp;gt; &amp;gt; select * from (r left outer join s on r.c1=s.c1) left outer join t on s.c2=t.c1 or s.c2 is null;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; select * from r left outer join (s left outer join t on s.c2=t.c1 or s.c2 is null) on r.c1=s.c1;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; The last result is wrong. The correct answer should be:
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|NULL &amp;nbsp; 
&lt;br&gt;&amp;gt; since in the last form, the left table r has the value 'a', which does
&lt;br&gt;&amp;gt; not match any row in result of the compound inner given the join
&lt;br&gt;&amp;gt; predicate (&amp;quot;r.c1=s.c1&amp;quot;), so all nulls should be appended to the 'a'
&lt;br&gt;&amp;gt; from the outer table r.
&lt;br&gt;&amp;gt; This happens because internally the last form is rewritten to the
&lt;br&gt;&amp;gt; second but the last form (left-deep), but this rewrite is not
&lt;br&gt;&amp;gt; justified here unless the join predicate on s rejects null, which the
&lt;br&gt;&amp;gt; present one explicitly does not (&amp;quot;or s.c2 is null&amp;quot;). Cf. for example
&lt;br&gt;&amp;gt; [1], page 52, which describes this transform and its prerequisite
&lt;br&gt;&amp;gt; condition as indentity #7.
&lt;br&gt;&amp;gt; [1] Galindo-Legaria, C. &amp; Rosenthal, A.: &amp;quot;Outerjoin simplification and
&lt;br&gt;&amp;gt; reordering for query optimization&amp;quot;, ACM Transactions on Database
&lt;br&gt;&amp;gt; Systems, Vol 22, No 1, March 1997.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4471%29-Left-outer-join-reassociation-rewrite-gives-wrong-result-tp26753692p26803204.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803178</id>
	<title>[jira] Updated: (DERBY-4471) Left outer join reassociation rewrite gives wrong result</title>
	<published>2009-12-15T14:43:18Z</published>
	<updated>2009-12-15T14:43:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Dag H. Wanvik updated DERBY-4471:
&lt;br&gt;---------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Version/s: 10.0.2.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.0.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.1.1.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.1.3.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.2.1.6
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.2.2.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.3.1.4
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.3.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.3.3.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.4.1.3
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.4.2.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.5.1.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.5.2.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.5.3.0
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Left outer join reassociation rewrite gives wrong result
&lt;br&gt;&amp;gt; --------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4471
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4471&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4471&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: SQL
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Dag H. Wanvik
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4471-junit-repro.diff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The following script and output shows the problem:
&lt;br&gt;&amp;gt; &amp;gt; create table r(c1 char(1));
&lt;br&gt;&amp;gt; &amp;gt; create table s(c1 char(1), c2 char(1));
&lt;br&gt;&amp;gt; &amp;gt; create table t(c1 char(1));
&lt;br&gt;&amp;gt; &amp;gt; insert into r values 'a';
&lt;br&gt;&amp;gt; &amp;gt; insert into s values ('b', default);
&lt;br&gt;&amp;gt; &amp;gt; insert into t values ('c');
&lt;br&gt;&amp;gt; &amp;gt; select * from s left outer join t on s.c2=t.c1 or s.c2 is null;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; b &amp;nbsp; |NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; select * from r left outer join s on r.c1=s.c1;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL
&lt;br&gt;&amp;gt; &amp;gt; select * from (r left outer join s on r.c1=s.c1) left outer join t on s.c2=t.c1 or s.c2 is null;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; select * from r left outer join (s left outer join t on s.c2=t.c1 or s.c2 is null) on r.c1=s.c1;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; The last result is wrong. The correct answer should be:
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|NULL &amp;nbsp; 
&lt;br&gt;&amp;gt; since in the last form, the left table r has the value 'a', which does
&lt;br&gt;&amp;gt; not match any row in result of the compound inner given the join
&lt;br&gt;&amp;gt; predicate (&amp;quot;r.c1=s.c1&amp;quot;), so all nulls should be appended to the 'a'
&lt;br&gt;&amp;gt; from the outer table r.
&lt;br&gt;&amp;gt; This happens because internally the last form is rewritten to the
&lt;br&gt;&amp;gt; second but the last form (left-deep), but this rewrite is not
&lt;br&gt;&amp;gt; justified here unless the join predicate on s rejects null, which the
&lt;br&gt;&amp;gt; present one explicitly does not (&amp;quot;or s.c2 is null&amp;quot;). Cf. for example
&lt;br&gt;&amp;gt; [1], page 52, which describes this transform and its prerequisite
&lt;br&gt;&amp;gt; condition as indentity #7.
&lt;br&gt;&amp;gt; [1] Galindo-Legaria, C. &amp; Rosenthal, A.: &amp;quot;Outerjoin simplification and
&lt;br&gt;&amp;gt; reordering for query optimization&amp;quot;, ACM Transactions on Database
&lt;br&gt;&amp;gt; Systems, Vol 22, No 1, March 1997.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4471%29-Left-outer-join-reassociation-rewrite-gives-wrong-result-tp26753692p26803178.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803084</id>
	<title>[jira] Updated: (DERBY-4471) Left outer join reassociation rewrite gives wrong result</title>
	<published>2009-12-15T14:37:18Z</published>
	<updated>2009-12-15T14:37:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Dag H. Wanvik updated DERBY-4471:
&lt;br&gt;---------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: derby-4471-junit-repro.diff
&lt;br&gt;&lt;br&gt;Thanks, Knut!
&lt;br&gt;Uploading a patch to JoinTest.java which shows the problem in JUnit form.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Left outer join reassociation rewrite gives wrong result
&lt;br&gt;&amp;gt; --------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4471
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4471&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4471&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: SQL
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Dag H. Wanvik
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4471-junit-repro.diff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The following script and output shows the problem:
&lt;br&gt;&amp;gt; &amp;gt; create table r(c1 char(1));
&lt;br&gt;&amp;gt; &amp;gt; create table s(c1 char(1), c2 char(1));
&lt;br&gt;&amp;gt; &amp;gt; create table t(c1 char(1));
&lt;br&gt;&amp;gt; &amp;gt; insert into r values 'a';
&lt;br&gt;&amp;gt; &amp;gt; insert into s values ('b', default);
&lt;br&gt;&amp;gt; &amp;gt; insert into t values ('c');
&lt;br&gt;&amp;gt; &amp;gt; select * from s left outer join t on s.c2=t.c1 or s.c2 is null;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; b &amp;nbsp; |NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; select * from r left outer join s on r.c1=s.c1;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;
&lt;br&gt;&amp;gt; --------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL
&lt;br&gt;&amp;gt; &amp;gt; select * from (r left outer join s on r.c1=s.c1) left outer join t on s.c2=t.c1 or s.c2 is null;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; select * from r left outer join (s left outer join t on s.c2=t.c1 or s.c2 is null) on r.c1=s.c1;
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|c &amp;nbsp; 
&lt;br&gt;&amp;gt; The last result is wrong. The correct answer should be:
&lt;br&gt;&amp;gt; C1 &amp;nbsp;|C1 &amp;nbsp;|C2 &amp;nbsp;|C1 &amp;nbsp;
&lt;br&gt;&amp;gt; -------------------
&lt;br&gt;&amp;gt; a &amp;nbsp; |NULL|NULL|NULL &amp;nbsp; 
&lt;br&gt;&amp;gt; since in the last form, the left table r has the value 'a', which does
&lt;br&gt;&amp;gt; not match any row in result of the compound inner given the join
&lt;br&gt;&amp;gt; predicate (&amp;quot;r.c1=s.c1&amp;quot;), so all nulls should be appended to the 'a'
&lt;br&gt;&amp;gt; from the outer table r.
&lt;br&gt;&amp;gt; This happens because internally the last form is rewritten to the
&lt;br&gt;&amp;gt; second but the last form (left-deep), but this rewrite is not
&lt;br&gt;&amp;gt; justified here unless the join predicate on s rejects null, which the
&lt;br&gt;&amp;gt; present one explicitly does not (&amp;quot;or s.c2 is null&amp;quot;). Cf. for example
&lt;br&gt;&amp;gt; [1], page 52, which describes this transform and its prerequisite
&lt;br&gt;&amp;gt; condition as indentity #7.
&lt;br&gt;&amp;gt; [1] Galindo-Legaria, C. &amp; Rosenthal, A.: &amp;quot;Outerjoin simplification and
&lt;br&gt;&amp;gt; reordering for query optimization&amp;quot;, ACM Transactions on Database
&lt;br&gt;&amp;gt; Systems, Vol 22, No 1, March 1997.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4471%29-Left-outer-join-reassociation-rewrite-gives-wrong-result-tp26753692p26803084.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26802447</id>
	<title>[jira] Resolved: (DERBY-4405) Transformation to inner join not performed for certain three-way joins</title>
	<published>2009-12-15T13:51:18Z</published>
	<updated>2009-12-15T13:51:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Dag H. Wanvik resolved DERBY-4405.
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Resolution: Fixed
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fix Version/s: 10.6.0.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; Issue &amp; fix info: &amp;nbsp; (was: [Patch Available])
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Transformation to inner join not performed for certain three-way joins
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4405
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4405&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4405&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: SQL
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.6.0.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Knut Anders Hatlen
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Dag H. Wanvik
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 10.6.0.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4405-2.diff, derby-4405-2.stat, derby-4405.diff, derby-4405.stat
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In the CROSS JOIN section in the reference manual (&lt;a href=&quot;http://db.apache.org/derby/docs/dev/ref/rrefsqljcrossjoin.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/docs/dev/ref/rrefsqljcrossjoin.html&lt;/a&gt;) there are three examples that are supposed to be equivalent. However, the performance differs significantly between the different queries.
&lt;br&gt;&amp;gt; The queries use the tours db and look like this:
&lt;br&gt;&amp;gt; (1)
&lt;br&gt;&amp;gt; SELECT * FROM CITIES LEFT OUTER JOIN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (FLIGHTS CROSS JOIN COUNTRIES)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ON CITIES.AIRPORT = FLIGHTS.ORIG_AIRPORT
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE COUNTRIES.COUNTRY_ISO_CODE = 'US'
&lt;br&gt;&amp;gt; (2)
&lt;br&gt;&amp;gt; SELECT * FROM CITIES LEFT OUTER JOIN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; FLIGHTS INNER JOIN COUNTRIES ON 1=1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ON CITIES.AIRPORT = FLIGHTS.ORIG_AIRPORT
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE COUNTRIES.COUNTRY_ISO_CODE = 'US'
&lt;br&gt;&amp;gt; (3)
&lt;br&gt;&amp;gt; SELECT * FROM CITIES LEFT OUTER JOIN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (SELECT * FROM FLIGHTS, COUNTRIES) S
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ON CITIES.AIRPORT = S.ORIG_AIRPORT
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE S.COUNTRY_ISO_CODE = 'US'
&lt;br&gt;&amp;gt; When executed in ij, (1) and (2) need 6 seconds to complete, whereas (3) completes in 50 ms.
&lt;br&gt;&amp;gt; The query plans for (1) and (2) use nested loop joins and table scans. (3) uses a combination of hash join and nested loop join, and index scans as well as table scans.
&lt;br&gt;&amp;gt; It looks like (3) has been rewritten from a left outer join to an inner join internally. This is fine because all rows that have the right-side columns filled with NULLs will be filtered out by the predicate S.COUNTRY_ISO_CODE='US', so the extra rows generated by the outer join will not be returned.
&lt;br&gt;&amp;gt; This optimization should also be possible for (1) and (2). We should improve the logic so that those joins are transformed too. The transformation happens in HalfOuterJoinNode.transformOuterJoins().
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4405%29-Transformation-to-inner-join-not-performed-for-certain-three-way-joins-tp25854262p26802447.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26802414</id>
	<title>[jira] Commented: (DERBY-4405) Transformation to inner join not performed for certain three-way joins</title>
	<published>2009-12-15T13:49:18Z</published>
	<updated>2009-12-15T13:49:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790975#action_12790975&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790975#action_12790975&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Dag H. Wanvik commented on DERBY-4405:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;Regressions passed, committed as svn 891015.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Transformation to inner join not performed for certain three-way joins
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4405
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4405&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4405&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: SQL
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.6.0.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Knut Anders Hatlen
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Dag H. Wanvik
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4405-2.diff, derby-4405-2.stat, derby-4405.diff, derby-4405.stat
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In the CROSS JOIN section in the reference manual (&lt;a href=&quot;http://db.apache.org/derby/docs/dev/ref/rrefsqljcrossjoin.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/docs/dev/ref/rrefsqljcrossjoin.html&lt;/a&gt;) there are three examples that are supposed to be equivalent. However, the performance differs significantly between the different queries.
&lt;br&gt;&amp;gt; The queries use the tours db and look like this:
&lt;br&gt;&amp;gt; (1)
&lt;br&gt;&amp;gt; SELECT * FROM CITIES LEFT OUTER JOIN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (FLIGHTS CROSS JOIN COUNTRIES)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ON CITIES.AIRPORT = FLIGHTS.ORIG_AIRPORT
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE COUNTRIES.COUNTRY_ISO_CODE = 'US'
&lt;br&gt;&amp;gt; (2)
&lt;br&gt;&amp;gt; SELECT * FROM CITIES LEFT OUTER JOIN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; FLIGHTS INNER JOIN COUNTRIES ON 1=1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ON CITIES.AIRPORT = FLIGHTS.ORIG_AIRPORT
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE COUNTRIES.COUNTRY_ISO_CODE = 'US'
&lt;br&gt;&amp;gt; (3)
&lt;br&gt;&amp;gt; SELECT * FROM CITIES LEFT OUTER JOIN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (SELECT * FROM FLIGHTS, COUNTRIES) S
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ON CITIES.AIRPORT = S.ORIG_AIRPORT
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE S.COUNTRY_ISO_CODE = 'US'
&lt;br&gt;&amp;gt; When executed in ij, (1) and (2) need 6 seconds to complete, whereas (3) completes in 50 ms.
&lt;br&gt;&amp;gt; The query plans for (1) and (2) use nested loop joins and table scans. (3) uses a combination of hash join and nested loop join, and index scans as well as table scans.
&lt;br&gt;&amp;gt; It looks like (3) has been rewritten from a left outer join to an inner join internally. This is fine because all rows that have the right-side columns filled with NULLs will be filtered out by the predicate S.COUNTRY_ISO_CODE='US', so the extra rows generated by the outer join will not be returned.
&lt;br&gt;&amp;gt; This optimization should also be possible for (1) and (2). We should improve the logic so that those joins are transformed too. The transformation happens in HalfOuterJoinNode.transformOuterJoins().
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4405%29-Transformation-to-inner-join-not-performed-for-certain-three-way-joins-tp25854262p26802414.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801650</id>
	<title>Re: [jira] Commented: (DERBY-4424) Convert outerjoin.sql into JUnit</title>
	<published>2009-12-15T12:57:06Z</published>
	<updated>2009-12-15T12:57:06Z</updated>
	<author>
		<name>Dag H. Wanvik</name>
	</author>
	<content type="html">&amp;quot;Bryan Pendleton (JIRA)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jira@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; 1) testBug2897(org.apache.derbyTesting.functionTests.tests.lang.OuterJoinTest)java.lang.NullPointerException
&lt;br&gt;&lt;br&gt;Btw, the number here, 2897, refers to pre-JIRA days. Should we make up
&lt;br&gt;some systematic way of referring to such old error number so as not
&lt;br&gt;to confuse them with JIRA numbering? I imagine we don't want to remove
&lt;br&gt;the old number information since I have seen the IBM folks sometimes make
&lt;br&gt;use of the old numbers.. Maybe it's enough that we always refer to
&lt;br&gt;JIRA errors as DERBY-nnnn in comments and some adapted string for
&lt;br&gt;identifiers, e.g. [dD]erbyNNNN.
&lt;br&gt;&lt;br&gt;Dag
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4424%29-Convert-outerjoin.sql-into-JUnit-tp26041124p26801650.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800218</id>
	<title>[jira] Updated: (DERBY-4038) On Z/OS store/access.sql fails with encryptionAES and encryptionDES</title>
	<published>2009-12-15T11:21:18Z</published>
	<updated>2009-12-15T11:21:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Mike Matrigali updated DERBY-4038:
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;comments from review of the patch:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; - removed the call to procedure WAIT_FOR_POST_COMMIT as it didn't appear to
&lt;br&gt;&amp;gt; be used anywhere.
&lt;br&gt;sounds good, it is not called so remove all reference to it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Was I misinterpreting the use of WAIT_FOR_POST_COMMIT? What would be the pur
&lt;br&gt;pose of it?
&lt;br&gt;It is not called, leftover cruft.
&lt;br&gt;&lt;br&gt;&lt;br&gt;comments on TODO's:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// TODO: check on what the following comment from the original test
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// means. I don't think this test is currently checking whether the
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// optimizer is picking the index, might be worthwhile adding it.
&lt;br&gt;&lt;br&gt;At this point not sure history of this, I would just remove comment.
&lt;br&gt;&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// as subset of columns, with qualifier not in list
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//TODO: this comment is not matching the expected results. OK?
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// should be 5,3,1 and 50,30,10
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;doQuery(st, &amp;quot;select e, c, a from foo where foo.b = 20&amp;quot;,
&lt;br&gt;comment looks bad, just fix the comment.
&lt;br&gt;&lt;br&gt;+ &amp;nbsp; &amp;nbsp;// TODO: how does this check that rows are reclaimed or not? How?
&lt;br&gt;looks like all work was moved to the subroutine, so probably should move
&lt;br&gt;comments to the subroutine from the caller. &amp;nbsp;At least the part of the comments
&lt;br&gt;that make sense.
&lt;br&gt;&lt;br&gt;The code just tries to exercise the post commit path, but agree that it does
&lt;br&gt;not specifically verify the reclaim. &amp;nbsp;This is hard to do from a user level
&lt;br&gt;test, in a way that is reproducible across different hardware, jvms. &amp;nbsp;The
&lt;br&gt;values are just hand picked to exercise different paths through the code.
&lt;br&gt;One could try to use space table to verify sizes of the tables, but this
&lt;br&gt;has caused non-reproducible results in cases where timing of background threads
&lt;br&gt;are different.
&lt;br&gt;&lt;br&gt;// TODO: change this call into a call to SYSCS_DIAG.SPACE_TABLE
&lt;br&gt;I agree, it should use the current supported interface.
&lt;br&gt;&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// TODO: original test had 1 pages visited.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// But now that it's converted, we get 0 pages, which also
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// seems reasonable to me. Or not?
&lt;br&gt;This seems like it might be a problem. &amp;nbsp;Can you print out the full query
&lt;br&gt;plan on failure of the assert. &amp;nbsp;It is hard to know what is going on from
&lt;br&gt;just this one piece of info.
&lt;br&gt;&lt;br&gt;The main point of this test is that is should use the index whether there
&lt;br&gt;are zero or 1 rows. &amp;nbsp;We choose to force this because if we use index we get
&lt;br&gt;row level locking, but if we use table scan we are going to get table level
&lt;br&gt;locking - so better concurrency in the edge case.
&lt;br&gt;&lt;br&gt;+ &amp;nbsp; &amp;nbsp;// TODO: in which way does this check qualifiers?
&lt;br&gt;qualifiers are just things like a = 1 and b = 20. &amp;nbsp;When test was written the
&lt;br&gt;code in language and store to evaluate these were changing. &amp;nbsp;The changes
&lt;br&gt;especially had some new logic to handle &amp;quot;and&amp;quot; and &amp;quot;or&amp;quot;. &amp;nbsp;So the test just
&lt;br&gt;has some of these cases and tests them by making sure the right results
&lt;br&gt;come back.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Z/OS store/access.sql fails with encryptionAES and encryptionDES
&lt;br&gt;&amp;gt; -------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4038
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4038&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4038&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Test
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.3.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: java version &amp;quot;1.6.0&amp;quot;
&lt;br&gt;&amp;gt; Java(TM) SE Runtime Environment (build pmz6460sr3-20081108_01(SR3))
&lt;br&gt;&amp;gt; IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 z/OS s390x-64 jvmmz6460-20081107_25433 (JIT enabled, AOT enabled)
&lt;br&gt;&amp;gt; J9VM - 20081105_025433_BHdSMr
&lt;br&gt;&amp;gt; JIT &amp;nbsp;- r9_20081031_1330
&lt;br&gt;&amp;gt; GC &amp;nbsp; - 20081027_AB)
&lt;br&gt;&amp;gt; JCL &amp;nbsp;- 20081106_01
&lt;br&gt;&amp;gt; $ pwd
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Kathey Marsden
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: access.diff, access.out, DERBY-4038.diff_1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Z/OS access.sql fails for encryptionAES and encryptionDES. The diff is big but I can't quite make out what the problem is. Maybe just a change of query plans.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4038%29-On-Z-OS-store-access.sql-fails-with-encryptionAES-and-encryptionDES-tp21739650p26800218.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798745</id>
	<title>[jira] Updated: (DERBY-4463) JMX test in nightly test suite failed with:  JMXTest:clientjava.lang.InterruptedException:</title>
	<published>2009-12-15T09:44:18Z</published>
	<updated>2009-12-15T09:44:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Mike Matrigali updated DERBY-4463:
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;doesn't look like latest patch fixed in 889875 fixed the ibm results. &amp;nbsp;Here are results against
&lt;br&gt;a build against 890158:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/890158-suites.All_diff.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/890158-suites.All_diff.txt&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/890158-suites.All_diff.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/890158-suites.All_diff.txt&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; JMX test in nightly test suite failed with: &amp;nbsp;JMXTest:clientjava.lang.InterruptedException: &amp;nbsp;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4463
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4463&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4463&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Test
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.6.0.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: failed on windows with ibm15 and ibm16 jvms
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mike Matrigali
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Dag H. Wanvik
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 10.6.0.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4463-2.diff, derby-4463.diff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 7) JMXTest:clientjava.lang.InterruptedException: 
&lt;br&gt;&amp;gt; 	at org.apache.derbyTesting.junit.SpawnedProcess.complete(SpawnedProcess.java:137)
&lt;br&gt;&amp;gt; 	at org.apache.derbyTesting.junit.NetworkServerTestSetup.tearDown(NetworkServerTestSetup.java:392)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestSetup.run(TestSetup.java:23)
&lt;br&gt;&amp;gt; 	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestSetup.run(TestSetup.java:23)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
&lt;br&gt;&amp;gt; 	at junit.extensions.TestSetup.run(TestSetup.java:23)
&lt;br&gt;&amp;gt; Started failing with build 887040. &amp;nbsp;Here are links for the errors the first time it was encountered:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/887040-suites.All_diff.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/887040-suites.All_diff.txt&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/887040-suites.All_diff.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/887040-suites.All_diff.txt&lt;/a&gt;&lt;br&gt;&amp;gt; And it still occurred in the next main build:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/887483-suites.All_diff.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/887483-suites.All_diff.txt&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/887483-suites.All_diff.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/887483-suites.All_diff.txt&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4463%29-JMX-test-in-nightly-test-suite-failed-with%3A--JMXTest%3Aclientjava.lang.InterruptedException%3A-tp26685986p26798745.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798039</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T08:58:27Z</published>
	<updated>2009-12-15T08:58:27Z</updated>
	<author>
		<name>Wildman</name>
	</author>
	<content type="html">Rick,
&lt;br&gt;&lt;br&gt;Again, thanks for your very generous and detailed help!
&lt;br&gt;&lt;br&gt;I am attempting to use the same data file that I used with mySQL. It has no column names at all, just values. It is in CSV format with strings having embedded spaces and commas surrounded by double quotes. 
&lt;br&gt;&lt;br&gt;I guess I had better start reading the Derby documentation seriously -- it appears to be quite different from mySQL in many ways.
&lt;br&gt;&lt;br&gt;-Bill
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26798039.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798050</id>
	<title>[jira] Updated: (DERBY-4477) Selecting / projecting a column whose value is represented by a stream more than once fails</title>
	<published>2009-12-15T08:58:18Z</published>
	<updated>2009-12-15T08:58:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Kristian Waagan updated DERBY-4477:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: derby-4477-0a-prototype.diff
&lt;br&gt;&lt;br&gt;Attached a prototype patch 0a.
&lt;br&gt;&lt;br&gt;The logic is isolated in ProjectRestrictResultSet, the rest of the patch is code from the patch attached to DERBY-3650.
&lt;br&gt;Currently, the prototype tried to implement something along the lines of phase 2.
&lt;br&gt;I'm running the regressions tests, and tomorrow I will post a performance test and some results.
&lt;br&gt;&lt;br&gt;I'd like some feedback on how we want Derby to behave:
&lt;br&gt;&amp;nbsp;- what should the clone stream threshold be?
&lt;br&gt;&amp;nbsp;- is it okay to always materialize [[LONG] VAR]CHAR [FOR BIT DATA]?
&lt;br&gt;&amp;nbsp;- the DataValueDescriptor.getLengthIfKnow was something I added just before posting the patch, to optimize where possible. Keep it or ditch it? Useful in other scenarios?
&lt;br&gt;&amp;nbsp; &amp;nbsp;(as a side note, getCharLengthIfKnown was added to InternalClob)
&lt;br&gt;&amp;nbsp;- the second check could be done in the constructor if there was a way to reliably find the types of the relevant columns (I was only able to find the descriptors for the top-level result set, but then I don't know the available structures very well)
&lt;br&gt;&lt;br&gt;Finally, with the exception of the code in the constructor, the added code should only be activated if the user selects a &amp;quot;store streamable&amp;quot; [1] column more than once. I don't know if that is very common, and I guess the most important issue is that Derby is able to handle it without crashing.
&lt;br&gt;&lt;br&gt;&lt;br&gt;[1] The store streamable are the various CHAR and CHAR FOR BIT DATA types, BLOB, and CLOB.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(Hmm, what about XML?)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Selecting / projecting a column whose value is represented by a stream more than once fails
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4477
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4477&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4477&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Store
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.3.3.0, 10.4.2.0, 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Kristian Waagan
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Kristian Waagan
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4477-0a-prototype.diff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Selecting / projecting a column whose value is represented as a stream more than once crashes Derby, i.e.:
&lt;br&gt;&amp;gt; ResultSet rs = stmt.executeQuery(&amp;quot;SELECT clobValue AS clobOne, clobValue AS clobTwo FROM mytable&amp;quot;);
&lt;br&gt;&amp;gt; rs.getString(1);
&lt;br&gt;&amp;gt; rs.getString(2);
&lt;br&gt;&amp;gt; After having looked at the class of bugs having to do with reuse of stream data types, I now have a possible fix. It fixes DERBY-3645, DERBY-3646 and DERBY-2349 (there may be more Jiras).
&lt;br&gt;&amp;gt; The core of the fix is cloning certain DVDs being selected/projected in multiple columns. There are two types of cloning:
&lt;br&gt;&amp;gt; &amp;nbsp;A) materializing clone
&lt;br&gt;&amp;gt; &amp;nbsp;B) stream clone
&lt;br&gt;&amp;gt; (A) can be implemented already, (B) requires code to clone a stream without materializing it. Note that the streams I'm talking about are streams originating from the store.
&lt;br&gt;&amp;gt; Testing revealed the following:
&lt;br&gt;&amp;gt; &amp;nbsp;- the cost of the checks performed to figure out if cloning is required seems acceptable (negligible?)
&lt;br&gt;&amp;gt; &amp;nbsp;- in some cases (A) has better performance than (B) because the raw data only has to be decoded once
&lt;br&gt;&amp;gt; &amp;nbsp;- stream clones are preferred when the data value is above a certain size for several reasons:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * avoids potential out-of-memory errors (and in case of a server environment, it lowers the memory pressure)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * avoids decoding the whole value if the JDBC streaming APIs are used to access only parts of the value
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * avoids decoding overall in cases where the value isn't accessed by the client / user
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(this statement conflicts with the performance observation above)
&lt;br&gt;&amp;gt; We don't always know the size of a value, and since the fix code deals with all kinds of data types, it is slightly more costly to try to obtain the size.
&lt;br&gt;&amp;gt; What do people think about the following goal statement?
&lt;br&gt;&amp;gt; Goals:
&lt;br&gt;&amp;gt; ----- Phase 1
&lt;br&gt;&amp;gt; &amp;nbsp;1) No crashes or wrong results due to stream reuse when executing duplicate column selections (minus goal 4)
&lt;br&gt;&amp;gt; &amp;nbsp;2) Minimal performance degradation for non-duplicate column selections
&lt;br&gt;&amp;gt; &amp;nbsp;3) Only a minor performance degradation for duplicate [[LONG] VAR]CHAR [FOR BIT DATA] column selections
&lt;br&gt;&amp;gt; ----- Phase 2
&lt;br&gt;&amp;gt; &amp;nbsp;4) No out-of-memory exceptions during execution of duplicate column selections of BLOB/CLOB
&lt;br&gt;&amp;gt; &amp;nbsp;5) Optimize BLOB/CLOB cloning
&lt;br&gt;&amp;gt; I think phase 1 can proceed by reviewing and discussing the prototype patch. Phase 2 requires more discussion and work (see DERBY-3650).
&lt;br&gt;&amp;gt; A note about the bug behavior facts:
&lt;br&gt;&amp;gt; Since this issue is the underlying cause for several other reported issues, I have decided to be liberal when setting the bug behavior facts. Depending on where the duplicate column selection is used, it can cause both crashes, wrong results and data corruption.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4477%29-Selecting---projecting-a-column-whose-value-is-represented-by-a-stream-more-than-once-fails-tp26794610p26798050.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798005</id>
	<title>Regression Test Report - Daily 890403 - Sun DBTG</title>
	<published>2009-12-15T08:55:52Z</published>
	<updated>2009-12-15T08:55:52Z</updated>
	<author>
		<name>Ole.Solberg</name>
	</author>
	<content type="html">[Auto-generated mail]
&lt;br&gt;&lt;br&gt;*Daily* 890403/2009-12-14 18:02:12 MET
&lt;br&gt;&lt;br&gt;Failed &amp;nbsp;Tests &amp;nbsp; &amp;nbsp;OK &amp;nbsp;Skip &amp;nbsp;Duration &amp;nbsp; &amp;nbsp; &amp;nbsp; Suite
&lt;br&gt;-------------------------------------------------------
&lt;br&gt;*Jvm: 1.6*
&lt;br&gt;&amp;nbsp;lin
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1040.46% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;57.22% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 657.42% &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;sles
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 680.96% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;49.37% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 225.37% &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;sol
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 817.35% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;43.10% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 307.48% &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;solN+1
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 142.44% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;67.31% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 300.42% &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;sparc
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 530.46% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;47.44% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 269.52% &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;vista
&lt;br&gt;&amp;nbsp; &amp;nbsp; F:41,E:8 &amp;nbsp; &amp;nbsp;11768 &amp;nbsp; &amp;nbsp;11719 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 130.69% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;59.02% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;vista-64
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11768 &amp;nbsp; &amp;nbsp;11768 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 188.98% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;57.48% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;w2003
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11768 &amp;nbsp; &amp;nbsp;11768 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 231.30% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;69.89% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp; Details in &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-890403.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-890403.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; Attempted failure analysis in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/FailReports/890403_bySig.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/FailReports/890403_bySig.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;*Jvm: 1.5*
&lt;br&gt;&amp;nbsp;lin
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;52.99% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1730.60% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;sles
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;48.42% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1092.74% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;sol
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;45.48% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1528.31% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;solN+1
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;60.37% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1422.45% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;sparc
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;48.16% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp;9984 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1220.08% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;vista
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;45.39% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; F:0,E:1 &amp;nbsp; &amp;nbsp;9978 &amp;nbsp; &amp;nbsp;9977 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 916.37% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;vista-64
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;58.19% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9978 &amp;nbsp; &amp;nbsp;9978 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 212.57% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;w2003
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp;222 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;55.03% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9978 &amp;nbsp; &amp;nbsp;9978 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 569.97% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; Details in &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.5/testing/Limited/testSummary-890403.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.5/testing/Limited/testSummary-890403.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; Attempted failure analysis in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.5/FailReports/890403_bySig.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.5/FailReports/890403_bySig.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;*Jvm: 1.4*
&lt;br&gt;&amp;nbsp;lin
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;52.82% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1586.06% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;sles
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;43.22% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 913.14% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;sol
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;42.43% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1230.49% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;solN+1
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;59.00% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1328.31% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;sparc
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;46.97% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 1232.11% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;vista
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;44.53% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9825 &amp;nbsp; &amp;nbsp;9825 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 899.64% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;vista-64
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;56.76% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9825 &amp;nbsp; &amp;nbsp;9825 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 216.07% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp;w2003
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp;219 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp;56.80% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp;9831 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 569.30% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; Details in &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.4/testing/Limited/testSummary-890403.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.4/testing/Limited/testSummary-890403.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; Attempted failure analysis in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.4/FailReports/890403_bySig.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.4/FailReports/890403_bySig.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;.......................................................
&lt;br&gt;*Jvm: 1.7*
&lt;br&gt;&amp;nbsp;lin
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;sol
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp;11774 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp;vista-64
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;11768 &amp;nbsp; &amp;nbsp;11768 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; jdbcapiAutoLoad
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversAll
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp;12 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; JDBCDriversEmbedded
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp;221 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; derbyall
&lt;br&gt;&amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp; NA &amp;nbsp; &amp;nbsp;NA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatibility
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; demoSuite
&lt;br&gt;&amp;nbsp; Details in &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/Limited/testSummary-890403.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/Limited/testSummary-890403.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; Attempted failure analysis in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/FailReports/890403_bySig.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/FailReports/890403_bySig.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;*Jvm: phoneME*
&lt;br&gt;&amp;nbsp;ubuntu
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;4466 &amp;nbsp; &amp;nbsp;4466 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; .% &amp;nbsp; &amp;nbsp; suitesAll
&lt;br&gt;&amp;nbsp; Details in &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/javaME/testing/Limited/testSummary-890403.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/javaME/testing/Limited/testSummary-890403.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; Attempted failure analysis in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/javaME/FailReports/890403_bySig.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/javaME/FailReports/890403_bySig.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-------------------------------------------------------
&lt;br&gt;&lt;br&gt;Changes in &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/Daily/UpdateInfo/890403.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/Daily/UpdateInfo/890403.txt&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;( All results in &lt;a href=&quot;http://dbtg.foundry.sun.com/derby/test/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbtg.foundry.sun.com/derby/test/&lt;/a&gt;&amp;nbsp;) 
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Regression-Test-Report---Daily-890403---Sun-DBTG-tp26798005p26798005.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26797980</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T08:54:14Z</published>
	<updated>2009-12-15T08:54:14Z</updated>
	<author>
		<name>Rick Hillegas-2</name>
	</author>
	<content type="html">Hi Bill,
&lt;br&gt;&lt;br&gt;It's hard to say without seeing the SQL you used to create the tables 
&lt;br&gt;and the SQL of the query which is failing. You may have another 
&lt;br&gt;capitalization problem here: column names obey the same casing rules as 
&lt;br&gt;table names.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;-Rick
&lt;br&gt;&lt;br&gt;Wildman wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; After having fixed the table name capitalization problem, when I attempt to
&lt;br&gt;&amp;gt; execute the CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE call, I get this error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; java.sql.SQLException: The exception 'java.sql.SQLException: Column
&lt;br&gt;&amp;gt; 'COLUMN2' is either not in any table in the FROM list or appears within a
&lt;br&gt;&amp;gt; join specification and is outside the scope of the join specification or
&lt;br&gt;&amp;gt; appears in a HAVING clause and is not in the GROUP BY list. If this is a
&lt;br&gt;&amp;gt; CREATE or ALTER TABLE &amp;nbsp;statement then 'COLUMN2' is not a column in the
&lt;br&gt;&amp;gt; target table.' was thrown while evaluating an expression.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown
&lt;br&gt;&amp;gt; Source)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is quite a helpful error message, yes? Can anyone help in interpreting
&lt;br&gt;&amp;gt; it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt; -Bill
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26797980.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26796232</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T08:19:42Z</published>
	<updated>2009-12-15T08:19:42Z</updated>
	<author>
		<name>Wildman</name>
	</author>
	<content type="html">After having fixed the table name capitalization problem, when I attempt to execute the CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE call, I get this error:
&lt;br&gt;&lt;br&gt;java.sql.SQLException: The exception 'java.sql.SQLException: Column 'COLUMN2' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE &amp;nbsp;statement then 'COLUMN2' is not a column in the target table.' was thrown while evaluating an expression.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&lt;br&gt;This is quite a helpful error message, yes? Can anyone help in interpreting it?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;-Bill
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26796232.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26797321</id>
	<title>[jira] Updated: (DERBY-4272) SQL Authorization Support for dblook</title>
	<published>2009-12-15T08:12:18Z</published>
	<updated>2009-12-15T08:12:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Hiranya Jayathilaka updated DERBY-4272:
&lt;br&gt;---------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: DERBY-4272-changes-u6.txt
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DERBY-4272-u6.patch
&lt;br&gt;&lt;br&gt;Uploading the patch for all my workings so far. Includes:
&lt;br&gt;&lt;br&gt;* Complete source code including some of the recent fixes I have done to the code for the bugs discovered during testing
&lt;br&gt;* Partially completed test cases and related resources
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; SQL Authorization Support for dblook
&lt;br&gt;&amp;gt; ------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4272
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4272&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4272&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Tools
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Any
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Hiranya Jayathilaka
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Hiranya Jayathilaka
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: DERBY-4272-changes-u1.txt, DERBY-4272-changes-u2.txt, DERBY-4272-changes-u3.txt, DERBY-4272-changes-u4.txt, DERBY-4272-changes-u5.txt, DERBY-4272-changes-u6.txt, DERBY-4272-u1.patch, DERBY-4272-u2.patch, DERBY-4272-u3.patch, DERBY-4272-u4.patch, DERBY-4272-u5.patch, DERBY-4272-u6.patch, dhw-sample-1.sql, new.sql, old.sql
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Currently dblook suffers from two major shortcomings.
&lt;br&gt;&amp;gt; 1. dblook doesn't take the object dependencies into consideration when generating DDL scripts
&lt;br&gt;&amp;gt; 2. dblook doesn't have any support for SQL authorization
&lt;br&gt;&amp;gt; I intend to fix these two issues and improve dblook so that the DDL scripts generated by dblook can be executed without errors under all conditions.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4272%29-SQL-Authorization-Support-for-dblook-tp24023597p26797321.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26797162</id>
	<title>[jira] Commented: (DERBY-4455) Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.</title>
	<published>2009-12-15T08:04:18Z</published>
	<updated>2009-12-15T08:04:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790786#action_12790786&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790786#action_12790786&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Knut Anders Hatlen commented on DERBY-4455:
&lt;br&gt;-------------------------------------------
&lt;br&gt;&lt;br&gt;Sounds reasonable, although I don't quite understand how the length argument is used. Could this somehow make the length parameter passed to one of the top-level JDBC streaming methods getting lost?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4455
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Network Server
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Mac OS X 10.6.2, Java 6, Bitronix JTA
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Brett Wooldridge
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Kristian Waagan
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4455-1a.diff, derby-4455-1b.diff, DerbyFailure.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possibly related to #4332?
&lt;br&gt;&amp;gt; We have encountered an error when using Prepared Statements and CLOBs. &amp;nbsp;I have read:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&lt;/a&gt;&lt;br&gt;&amp;gt; But it does not seem applicable, as we are not re-using a stream.
&lt;br&gt;&amp;gt; The environment is this:
&lt;br&gt;&amp;gt; 1. Java 6
&lt;br&gt;&amp;gt; 2. Derby 10.5.3.0
&lt;br&gt;&amp;gt; 3. Bitronix JTA 1.3.3
&lt;br&gt;&amp;gt; We're actually using Hibernate, but I eliminated it from the equation (and the problem persists).
&lt;br&gt;&amp;gt; A summary of the failure flow is this:
&lt;br&gt;&amp;gt; 1. Start a transaction
&lt;br&gt;&amp;gt; 2. Obtain a connection from a pool of connections (for this test, the pool size is pinned at 1)
&lt;br&gt;&amp;gt; 3. Prepare a statement that inserts a CLOB.
&lt;br&gt;&amp;gt; 4. Set the parameters
&lt;br&gt;&amp;gt; 5. Add the prepared statement to a batch (but we only batch 1 -- this is to emulate what hibernate is doing as closely as possible).
&lt;br&gt;&amp;gt; 6. Execute the batch.
&lt;br&gt;&amp;gt; Everything up to this point works.
&lt;br&gt;&amp;gt; 7. Repeat steps 1-6. &amp;nbsp;But this time, the connection will be reused from the pool, and the statement will be gotten from a prepared statement cache (maintained by bitronix). &amp;nbsp;I.e. the prepared statement is re-used.
&lt;br&gt;&amp;gt; 8. Observe the following failure:
&lt;br&gt;&amp;gt; org.apache.derby.client.am.BatchUpdateException: Non-atomic batch failure. &amp;nbsp;The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.Agent.endBatchedReadChain(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchRequestX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatch(Unknown Source)
&lt;br&gt;&amp;gt; 	at bitronix.tm.resource.jdbc.JdbcPreparedStatementHandle.executeBatch(JdbcPreparedStatementHandle.java:248)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doInsert(TestFailure.java:134)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doPrepared(TestFailure.java:110)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.main(TestFailure.java:55)
&lt;br&gt;&amp;gt; Nov 30, 2009 10:29:31 PM bitronix.tm.BitronixTransactionManager shutdown
&lt;br&gt;&amp;gt; INFO: shutting down Bitronix Transaction Manager
&lt;br&gt;&amp;gt; An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.transferParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.jdbc.XAStatementControl.getRealPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Database.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Session.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.closeSession(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	... 15 more
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: Java exception: 'Stream has already been read and end-of-file reached and cannot be re-used.: java.io.EOFException'.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	... 12 more
&lt;br&gt;&amp;gt; Caused by: java.io.EOFException: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.ReaderToUTF8Stream.read(Unknown Source)
&lt;br&gt;&amp;gt; 	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:320)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.readExternal(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.getString(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.setFrom(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.DataType.setValue(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericParameterValueSet.transferDataValues(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.execute.BaseActivation.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericActivationHolder.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	... 10 more
&lt;br&gt;&amp;gt; Attached is an archived Eclipse project of a self-contained reproduction. &amp;nbsp;It includes everything needed to run, including the Bitronix 1.3.3 jar.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4455%29-Prepared-statement-failure-with-CLOB%3A-Stream-has-already-been-read-and-end-of-file-reached-and-cannot-be-re-used.-tp26575112p26797162.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26796453</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T07:19:18Z</published>
	<updated>2009-12-15T07:19:18Z</updated>
	<author>
		<name>Rick Hillegas-2</name>
	</author>
	<content type="html">Hi Bill,
&lt;br&gt;&lt;br&gt;Some responses inline..
&lt;br&gt;&lt;br&gt;Wildman wrote:
&lt;br&gt;&amp;gt; Rick,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Again, this is very helpful! One might well ask why single quotes are
&lt;br&gt;&amp;gt; allowed in the SYSCS_UTIL call (and in fact, Apache's examples show single
&lt;br&gt;&amp;gt; quotes in that application) but not in the SQL create table. 
&lt;br&gt;This is because the ANSI/ISO syntax makes a distinction between string 
&lt;br&gt;literals and SQL identifiers. String literals are enclosed in single 
&lt;br&gt;quotes. SQL identifiers are double-quoted if you need them to be 
&lt;br&gt;case-sensitive. It helps to keep in mind that SQL is a very old language 
&lt;br&gt;which goes back to the days when case-insensitive languages were still 
&lt;br&gt;in fashion. Mixing case-insensitive SQL with case-sensitive Java 
&lt;br&gt;requires some patience.
&lt;br&gt;&amp;gt; Actually, I
&lt;br&gt;&amp;gt; think the REAL question is, &amp;quot;Why does the SQL standard not include I/O to
&lt;br&gt;&amp;gt; load tables from files&amp;quot; -- this forces every database to implement this
&lt;br&gt;&amp;gt; functionality in its own, idiosyncratic way.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;I suspect this is because by the time the language was standardized, 
&lt;br&gt;each major vendor had already solved this problem in a proprietary way. 
&lt;br&gt;There was no good way to harmonize these different approaches.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;-Rick
&lt;br&gt;&amp;gt; -Bill
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26796453.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26796194</id>
	<title>[jira] Updated: (DERBY-3092) Use java.util.concurrent in TransactionTable to improve scalability</title>
	<published>2009-12-15T07:03:18Z</published>
	<updated>2009-12-15T07:03:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Knut Anders Hatlen updated DERBY-3092:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Summary: Use java.util.concurrent in TransactionTable to improve scalability &amp;nbsp;(was: Use java.util.concurrent in TransactionTable and XactFactory to improve scalability)
&lt;br&gt;&lt;br&gt;I've filed a separate issue for the XactFactory part of this issue. See DERBY-4478.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Use java.util.concurrent in TransactionTable to improve scalability
&lt;br&gt;&amp;gt; -------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-3092
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-3092&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-3092&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Store
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.3.1.4
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Dyre Tjeldvoll
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Knut Anders Hatlen
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: xact-concept.diff, xact-concept.png
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Running scalability tests with the client and buffer manager from DERBY-2911 shows that access to the TransactionTable.trans (a Hashtable) and XactFactory.tranId (a shared long) are the next major sources of contention. 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-3092%29-Use-java.util.concurrent-in-TransactionTable-and-XactFactory-to-improve-scalability-tp12940027p26796194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26796053</id>
	<title>[jira] Commented: (DERBY-4424) Convert outerjoin.sql into JUnit</title>
	<published>2009-12-15T06:55:18Z</published>
	<updated>2009-12-15T06:55:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790765#action_12790765&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790765#action_12790765&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Bryan Pendleton commented on DERBY-4424:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;Hi Eranda, thanks for attaching the updated patch with the license granted.
&lt;br&gt;&lt;br&gt;The patch applies and builds cleanly in my environment, but when I run
&lt;br&gt;the test, I get an error.
&lt;br&gt;&lt;br&gt;Can you see if you can figure out what might be making this test case fail?
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;&lt;br&gt;bryan
&lt;br&gt;&lt;br&gt;...........E...............
&lt;br&gt;Time: 30.233
&lt;br&gt;There was 1 error:
&lt;br&gt;1) testBug2897(org.apache.derbyTesting.functionTests.tests.lang.OuterJoinTest)java.lang.NullPointerException
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.derbyTesting.junit.RuntimeStatisticsParser.&amp;lt;init&amp;gt;(RuntimeStatisticsParser.java:49)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.derbyTesting.functionTests.tests.lang.OuterJoinTest.testBug2897(OuterJoinTest.java:2293)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.extensions.TestSetup.run(TestSetup.java:23)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
&lt;br&gt;&lt;br&gt;FAILURES!!!
&lt;br&gt;Tests run: 26, &amp;nbsp;Failures: 0, &amp;nbsp;Errors: 1
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Convert outerjoin.sql into JUnit
&lt;br&gt;&amp;gt; --------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4424
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4424&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4424&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Eranda Sooriyabandara
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Eranda Sooriyabandara
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 10.6.0.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: OuterJoinTest.diff, OuterJoinTest.diff, OuterJoinTest.diff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Conversion of the outerjoin test into JUnit
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4424%29-Convert-outerjoin.sql-into-JUnit-tp26041124p26796053.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795953</id>
	<title>[jira] Created: (DERBY-4478) Use AtomicLong for XactFactory.tranId</title>
	<published>2009-12-15T06:49:18Z</published>
	<updated>2009-12-15T06:49:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">Use AtomicLong for XactFactory.tranId
&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: DERBY-4478
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4478&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4478&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: Derby
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Improvement
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: Store
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 10.6.0.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Knut Anders Hatlen
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: Minor
&lt;br&gt;&lt;br&gt;&lt;br&gt;Dyre Tjeldvoll posted some results on DERBY-3092 that indicated that some types of load might cause contention on XactFactory.tranId (a shared long), and suggested that it was replaced with a java.util.concurrent.atomic.AtomicLong on the platforms that support java.util.concurrent.*.
&lt;br&gt;&lt;br&gt;I'm splitting this issue out from DERBY-3092 so that the two possible improvements reported there can be addressed independently.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4478%29-Use-AtomicLong-for-XactFactory.tranId-tp26795953p26795953.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795858</id>
	<title>[jira] Assigned: (DERBY-4455) Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.</title>
	<published>2009-12-15T06:43:18Z</published>
	<updated>2009-12-15T06:43:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Kristian Waagan reassigned DERBY-4455:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Assignee: Kristian Waagan
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4455
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Network Server
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Mac OS X 10.6.2, Java 6, Bitronix JTA
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Brett Wooldridge
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Kristian Waagan
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4455-1a.diff, derby-4455-1b.diff, DerbyFailure.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possibly related to #4332?
&lt;br&gt;&amp;gt; We have encountered an error when using Prepared Statements and CLOBs. &amp;nbsp;I have read:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&lt;/a&gt;&lt;br&gt;&amp;gt; But it does not seem applicable, as we are not re-using a stream.
&lt;br&gt;&amp;gt; The environment is this:
&lt;br&gt;&amp;gt; 1. Java 6
&lt;br&gt;&amp;gt; 2. Derby 10.5.3.0
&lt;br&gt;&amp;gt; 3. Bitronix JTA 1.3.3
&lt;br&gt;&amp;gt; We're actually using Hibernate, but I eliminated it from the equation (and the problem persists).
&lt;br&gt;&amp;gt; A summary of the failure flow is this:
&lt;br&gt;&amp;gt; 1. Start a transaction
&lt;br&gt;&amp;gt; 2. Obtain a connection from a pool of connections (for this test, the pool size is pinned at 1)
&lt;br&gt;&amp;gt; 3. Prepare a statement that inserts a CLOB.
&lt;br&gt;&amp;gt; 4. Set the parameters
&lt;br&gt;&amp;gt; 5. Add the prepared statement to a batch (but we only batch 1 -- this is to emulate what hibernate is doing as closely as possible).
&lt;br&gt;&amp;gt; 6. Execute the batch.
&lt;br&gt;&amp;gt; Everything up to this point works.
&lt;br&gt;&amp;gt; 7. Repeat steps 1-6. &amp;nbsp;But this time, the connection will be reused from the pool, and the statement will be gotten from a prepared statement cache (maintained by bitronix). &amp;nbsp;I.e. the prepared statement is re-used.
&lt;br&gt;&amp;gt; 8. Observe the following failure:
&lt;br&gt;&amp;gt; org.apache.derby.client.am.BatchUpdateException: Non-atomic batch failure. &amp;nbsp;The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.Agent.endBatchedReadChain(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchRequestX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatch(Unknown Source)
&lt;br&gt;&amp;gt; 	at bitronix.tm.resource.jdbc.JdbcPreparedStatementHandle.executeBatch(JdbcPreparedStatementHandle.java:248)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doInsert(TestFailure.java:134)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doPrepared(TestFailure.java:110)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.main(TestFailure.java:55)
&lt;br&gt;&amp;gt; Nov 30, 2009 10:29:31 PM bitronix.tm.BitronixTransactionManager shutdown
&lt;br&gt;&amp;gt; INFO: shutting down Bitronix Transaction Manager
&lt;br&gt;&amp;gt; An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.transferParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.jdbc.XAStatementControl.getRealPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Database.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Session.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.closeSession(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	... 15 more
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: Java exception: 'Stream has already been read and end-of-file reached and cannot be re-used.: java.io.EOFException'.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	... 12 more
&lt;br&gt;&amp;gt; Caused by: java.io.EOFException: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.ReaderToUTF8Stream.read(Unknown Source)
&lt;br&gt;&amp;gt; 	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:320)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.readExternal(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.getString(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.setFrom(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.DataType.setValue(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericParameterValueSet.transferDataValues(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.execute.BaseActivation.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericActivationHolder.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	... 10 more
&lt;br&gt;&amp;gt; Attached is an archived Eclipse project of a self-contained reproduction. &amp;nbsp;It includes everything needed to run, including the Bitronix 1.3.3 jar.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4455%29-Prepared-statement-failure-with-CLOB%3A-Stream-has-already-been-read-and-end-of-file-reached-and-cannot-be-re-used.-tp26575112p26795858.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795765</id>
	<title>[jira] Commented: (DERBY-4455) Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.</title>
	<published>2009-12-15T06:37:18Z</published>
	<updated>2009-12-15T06:37:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790759#action_12790759&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790759#action_12790759&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Kristian Waagan commented on DERBY-4455:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;Knut Anders&amp;gt; ... It may be more robust to create a new setValue() method with no length argument and with well-defined behaviour. 
&lt;br&gt;&lt;br&gt;I agree adding another value would be more robust.
&lt;br&gt;Looking at the existing code, it seems -1 is already used to indicate that the length is unknown. I found a total of 7 uses of the existing method, so it isn't heavily used.
&lt;br&gt;Would it make sense to improve the documentation of the existing method (in DataValueDescriptor) and verifying the current use, instead of adding yet another method?
&lt;br&gt;&lt;br&gt;After agreeing on this issue, I plan to commit the patch to trunk and backport it to the 10.5 branch. I might also merge it with 10.4 if it merges cleanly.
&lt;br&gt;I think it is an incremental improvement, and it would be nice to follow up on the XA behavior later.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4455
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Network Server
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Mac OS X 10.6.2, Java 6, Bitronix JTA
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Brett Wooldridge
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4455-1a.diff, derby-4455-1b.diff, DerbyFailure.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possibly related to #4332?
&lt;br&gt;&amp;gt; We have encountered an error when using Prepared Statements and CLOBs. &amp;nbsp;I have read:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&lt;/a&gt;&lt;br&gt;&amp;gt; But it does not seem applicable, as we are not re-using a stream.
&lt;br&gt;&amp;gt; The environment is this:
&lt;br&gt;&amp;gt; 1. Java 6
&lt;br&gt;&amp;gt; 2. Derby 10.5.3.0
&lt;br&gt;&amp;gt; 3. Bitronix JTA 1.3.3
&lt;br&gt;&amp;gt; We're actually using Hibernate, but I eliminated it from the equation (and the problem persists).
&lt;br&gt;&amp;gt; A summary of the failure flow is this:
&lt;br&gt;&amp;gt; 1. Start a transaction
&lt;br&gt;&amp;gt; 2. Obtain a connection from a pool of connections (for this test, the pool size is pinned at 1)
&lt;br&gt;&amp;gt; 3. Prepare a statement that inserts a CLOB.
&lt;br&gt;&amp;gt; 4. Set the parameters
&lt;br&gt;&amp;gt; 5. Add the prepared statement to a batch (but we only batch 1 -- this is to emulate what hibernate is doing as closely as possible).
&lt;br&gt;&amp;gt; 6. Execute the batch.
&lt;br&gt;&amp;gt; Everything up to this point works.
&lt;br&gt;&amp;gt; 7. Repeat steps 1-6. &amp;nbsp;But this time, the connection will be reused from the pool, and the statement will be gotten from a prepared statement cache (maintained by bitronix). &amp;nbsp;I.e. the prepared statement is re-used.
&lt;br&gt;&amp;gt; 8. Observe the following failure:
&lt;br&gt;&amp;gt; org.apache.derby.client.am.BatchUpdateException: Non-atomic batch failure. &amp;nbsp;The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.Agent.endBatchedReadChain(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchRequestX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatch(Unknown Source)
&lt;br&gt;&amp;gt; 	at bitronix.tm.resource.jdbc.JdbcPreparedStatementHandle.executeBatch(JdbcPreparedStatementHandle.java:248)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doInsert(TestFailure.java:134)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doPrepared(TestFailure.java:110)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.main(TestFailure.java:55)
&lt;br&gt;&amp;gt; Nov 30, 2009 10:29:31 PM bitronix.tm.BitronixTransactionManager shutdown
&lt;br&gt;&amp;gt; INFO: shutting down Bitronix Transaction Manager
&lt;br&gt;&amp;gt; An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.transferParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.jdbc.XAStatementControl.getRealPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Database.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Session.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.closeSession(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	... 15 more
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: Java exception: 'Stream has already been read and end-of-file reached and cannot be re-used.: java.io.EOFException'.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	... 12 more
&lt;br&gt;&amp;gt; Caused by: java.io.EOFException: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.ReaderToUTF8Stream.read(Unknown Source)
&lt;br&gt;&amp;gt; 	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:320)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.readExternal(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.getString(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.setFrom(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.DataType.setValue(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericParameterValueSet.transferDataValues(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.execute.BaseActivation.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericActivationHolder.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	... 10 more
&lt;br&gt;&amp;gt; Attached is an archived Eclipse project of a self-contained reproduction. &amp;nbsp;It includes everything needed to run, including the Bitronix 1.3.3 jar.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4455%29-Prepared-statement-failure-with-CLOB%3A-Stream-has-already-been-read-and-end-of-file-reached-and-cannot-be-re-used.-tp26575112p26795765.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795557</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T06:21:14Z</published>
	<updated>2009-12-15T06:21:14Z</updated>
	<author>
		<name>Wildman</name>
	</author>
	<content type="html">Rick,
&lt;br&gt;&lt;br&gt;Again, this is very helpful! One might well ask why single quotes are allowed in the SYSCS_UTIL call (and in fact, Apache's examples show single quotes in that application) but not in the SQL create table. Actually, I think the REAL question is, &amp;quot;Why does the SQL standard not include I/O to load tables from files&amp;quot; -- this forces every database to implement this functionality in its own, idiosyncratic way.
&lt;br&gt;&lt;br&gt;-Bill&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26795557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795399</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T06:08:14Z</published>
	<updated>2009-12-15T06:08:14Z</updated>
	<author>
		<name>Rick Hillegas-2</name>
	</author>
	<content type="html">Hi Bill,
&lt;br&gt;&lt;br&gt;You need to use double-quotes rather than single-quotes. See the 
&lt;br&gt;following section in the Derby Reference Guide: 
&lt;br&gt;&lt;a href=&quot;http://db.apache.org/derby/docs/10.5/ref/ref-single.html#crefsqlj34834&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/docs/10.5/ref/ref-single.html#crefsqlj34834&lt;/a&gt;&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;-Rick
&lt;br&gt;&lt;br&gt;Wildman wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks, Rick -- that is indeed quite helpful.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am a bit unsure of how to specify the table name so that it retains
&lt;br&gt;&amp;gt; lower-case. If I quote the name when creating the table; e.g. &amp;quot;create table
&lt;br&gt;&amp;gt; 'part_type' ( .... )&amp;quot; then I get a SQL error complaining about the quotes.
&lt;br&gt;&amp;gt; Is there another way to specify a table name including casing?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt; -Bill
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26795399.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795344</id>
	<title>[jira] Assigned: (DERBY-3092) Use java.util.concurrent in TransactionTable and XactFactory to improve scalability</title>
	<published>2009-12-15T06:05:19Z</published>
	<updated>2009-12-15T06:05:19Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Knut Anders Hatlen reassigned DERBY-3092:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Assignee: Knut Anders Hatlen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Use java.util.concurrent in TransactionTable and XactFactory to improve scalability
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-3092
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-3092&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-3092&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Store
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.3.1.4
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Dyre Tjeldvoll
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Knut Anders Hatlen
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: xact-concept.diff, xact-concept.png
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Running scalability tests with the client and buffer manager from DERBY-2911 shows that access to the TransactionTable.trans (a Hashtable) and XactFactory.tranId (a shared long) are the next major sources of contention. 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-3092%29-Use-java.util.concurrent-in-TransactionTable-and-XactFactory-to-improve-scalability-tp12940027p26795344.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795233</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T05:58:01Z</published>
	<updated>2009-12-15T05:58:01Z</updated>
	<author>
		<name>Knut Anders Hatlen</name>
	</author>
	<content type="html">Wildman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795233&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wleue1@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks, Rick -- that is indeed quite helpful.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am a bit unsure of how to specify the table name so that it retains
&lt;br&gt;&amp;gt; lower-case. If I quote the name when creating the table; e.g. &amp;quot;create table
&lt;br&gt;&amp;gt; 'part_type' ( .... )&amp;quot; then I get a SQL error complaining about the quotes.
&lt;br&gt;&amp;gt; Is there another way to specify a table name including casing?
&lt;br&gt;&lt;br&gt;Hi Bill,
&lt;br&gt;&lt;br&gt;You need to use double-quotes for SQL identifiers (single-quotes are
&lt;br&gt;only for string literals):
&lt;br&gt;&lt;br&gt;&amp;nbsp; create table &amp;quot;part_type&amp;quot; ( .... )
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Knut Anders
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26795233.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795124</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-15T05:53:04Z</published>
	<updated>2009-12-15T05:53:04Z</updated>
	<author>
		<name>Wildman</name>
	</author>
	<content type="html">Thanks, Rick -- that is indeed quite helpful.
&lt;br&gt;&lt;br&gt;I am a bit unsure of how to specify the table name so that it retains lower-case. If I quote the name when creating the table; e.g. &amp;quot;create table 'part_type' ( .... )&amp;quot; then I get a SQL error complaining about the quotes. Is there another way to specify a table name including casing?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;-Bill
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26795124.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26794814</id>
	<title>[jira] Commented: (DERBY-4455) Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.</title>
	<published>2009-12-15T05:29:18Z</published>
	<updated>2009-12-15T05:29:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790739#action_12790739&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790739#action_12790739&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Knut Anders Hatlen commented on DERBY-4455:
&lt;br&gt;-------------------------------------------
&lt;br&gt;&lt;br&gt;One comment to the patch:
&lt;br&gt;&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// NOTE: The length is ignored (use a non-sense value, it
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp; &amp;nbsp; &amp;nbsp; hopefully fails if required in the future).
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pvstarget.getParameterForSet(i).setValue(is, -3);
&lt;br&gt;&lt;br&gt;The length is only ignored by SQLChar.setValue() (and, by inheritance, SQLClob). SQLBinary.setValue() uses the length argument, as far as I can see. It may be more robust to create a new setValue() method with no length argument and with well-defined behaviour.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4455
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Network Server
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Mac OS X 10.6.2, Java 6, Bitronix JTA
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Brett Wooldridge
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4455-1a.diff, derby-4455-1b.diff, DerbyFailure.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possibly related to #4332?
&lt;br&gt;&amp;gt; We have encountered an error when using Prepared Statements and CLOBs. &amp;nbsp;I have read:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&lt;/a&gt;&lt;br&gt;&amp;gt; But it does not seem applicable, as we are not re-using a stream.
&lt;br&gt;&amp;gt; The environment is this:
&lt;br&gt;&amp;gt; 1. Java 6
&lt;br&gt;&amp;gt; 2. Derby 10.5.3.0
&lt;br&gt;&amp;gt; 3. Bitronix JTA 1.3.3
&lt;br&gt;&amp;gt; We're actually using Hibernate, but I eliminated it from the equation (and the problem persists).
&lt;br&gt;&amp;gt; A summary of the failure flow is this:
&lt;br&gt;&amp;gt; 1. Start a transaction
&lt;br&gt;&amp;gt; 2. Obtain a connection from a pool of connections (for this test, the pool size is pinned at 1)
&lt;br&gt;&amp;gt; 3. Prepare a statement that inserts a CLOB.
&lt;br&gt;&amp;gt; 4. Set the parameters
&lt;br&gt;&amp;gt; 5. Add the prepared statement to a batch (but we only batch 1 -- this is to emulate what hibernate is doing as closely as possible).
&lt;br&gt;&amp;gt; 6. Execute the batch.
&lt;br&gt;&amp;gt; Everything up to this point works.
&lt;br&gt;&amp;gt; 7. Repeat steps 1-6. &amp;nbsp;But this time, the connection will be reused from the pool, and the statement will be gotten from a prepared statement cache (maintained by bitronix). &amp;nbsp;I.e. the prepared statement is re-used.
&lt;br&gt;&amp;gt; 8. Observe the following failure:
&lt;br&gt;&amp;gt; org.apache.derby.client.am.BatchUpdateException: Non-atomic batch failure. &amp;nbsp;The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.Agent.endBatchedReadChain(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchRequestX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatch(Unknown Source)
&lt;br&gt;&amp;gt; 	at bitronix.tm.resource.jdbc.JdbcPreparedStatementHandle.executeBatch(JdbcPreparedStatementHandle.java:248)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doInsert(TestFailure.java:134)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doPrepared(TestFailure.java:110)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.main(TestFailure.java:55)
&lt;br&gt;&amp;gt; Nov 30, 2009 10:29:31 PM bitronix.tm.BitronixTransactionManager shutdown
&lt;br&gt;&amp;gt; INFO: shutting down Bitronix Transaction Manager
&lt;br&gt;&amp;gt; An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.transferParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.jdbc.XAStatementControl.getRealPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Database.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Session.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.closeSession(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	... 15 more
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: Java exception: 'Stream has already been read and end-of-file reached and cannot be re-used.: java.io.EOFException'.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	... 12 more
&lt;br&gt;&amp;gt; Caused by: java.io.EOFException: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.ReaderToUTF8Stream.read(Unknown Source)
&lt;br&gt;&amp;gt; 	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:320)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.readExternal(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.getString(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.setFrom(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.DataType.setValue(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericParameterValueSet.transferDataValues(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.execute.BaseActivation.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericActivationHolder.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	... 10 more
&lt;br&gt;&amp;gt; Attached is an archived Eclipse project of a self-contained reproduction. &amp;nbsp;It includes everything needed to run, including the Bitronix 1.3.3 jar.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4455%29-Prepared-statement-failure-with-CLOB%3A-Stream-has-already-been-read-and-end-of-file-reached-and-cannot-be-re-used.-tp26575112p26794814.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26794703</id>
	<title>[jira] Commented: (DERBY-4477) Selecting / projecting a column whose value is represented by a stream more than once fails</title>
	<published>2009-12-15T05:21:18Z</published>
	<updated>2009-12-15T05:21:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790733#action_12790733&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790733#action_12790733&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Kristian Waagan commented on DERBY-4477:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;Removed unused imports with revision 890789.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Selecting / projecting a column whose value is represented by a stream more than once fails
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4477
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4477&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4477&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Store
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.3.3.0, 10.4.2.0, 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Kristian Waagan
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Kristian Waagan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Selecting / projecting a column whose value is represented as a stream more than once crashes Derby, i.e.:
&lt;br&gt;&amp;gt; ResultSet rs = stmt.executeQuery(&amp;quot;SELECT clobValue AS clobOne, clobValue AS clobTwo FROM mytable&amp;quot;);
&lt;br&gt;&amp;gt; rs.getString(1);
&lt;br&gt;&amp;gt; rs.getString(2);
&lt;br&gt;&amp;gt; After having looked at the class of bugs having to do with reuse of stream data types, I now have a possible fix. It fixes DERBY-3645, DERBY-3646 and DERBY-2349 (there may be more Jiras).
&lt;br&gt;&amp;gt; The core of the fix is cloning certain DVDs being selected/projected in multiple columns. There are two types of cloning:
&lt;br&gt;&amp;gt; &amp;nbsp;A) materializing clone
&lt;br&gt;&amp;gt; &amp;nbsp;B) stream clone
&lt;br&gt;&amp;gt; (A) can be implemented already, (B) requires code to clone a stream without materializing it. Note that the streams I'm talking about are streams originating from the store.
&lt;br&gt;&amp;gt; Testing revealed the following:
&lt;br&gt;&amp;gt; &amp;nbsp;- the cost of the checks performed to figure out if cloning is required seems acceptable (negligible?)
&lt;br&gt;&amp;gt; &amp;nbsp;- in some cases (A) has better performance than (B) because the raw data only has to be decoded once
&lt;br&gt;&amp;gt; &amp;nbsp;- stream clones are preferred when the data value is above a certain size for several reasons:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * avoids potential out-of-memory errors (and in case of a server environment, it lowers the memory pressure)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * avoids decoding the whole value if the JDBC streaming APIs are used to access only parts of the value
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * avoids decoding overall in cases where the value isn't accessed by the client / user
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(this statement conflicts with the performance observation above)
&lt;br&gt;&amp;gt; We don't always know the size of a value, and since the fix code deals with all kinds of data types, it is slightly more costly to try to obtain the size.
&lt;br&gt;&amp;gt; What do people think about the following goal statement?
&lt;br&gt;&amp;gt; Goals:
&lt;br&gt;&amp;gt; ----- Phase 1
&lt;br&gt;&amp;gt; &amp;nbsp;1) No crashes or wrong results due to stream reuse when executing duplicate column selections (minus goal 4)
&lt;br&gt;&amp;gt; &amp;nbsp;2) Minimal performance degradation for non-duplicate column selections
&lt;br&gt;&amp;gt; &amp;nbsp;3) Only a minor performance degradation for duplicate [[LONG] VAR]CHAR [FOR BIT DATA] column selections
&lt;br&gt;&amp;gt; ----- Phase 2
&lt;br&gt;&amp;gt; &amp;nbsp;4) No out-of-memory exceptions during execution of duplicate column selections of BLOB/CLOB
&lt;br&gt;&amp;gt; &amp;nbsp;5) Optimize BLOB/CLOB cloning
&lt;br&gt;&amp;gt; I think phase 1 can proceed by reviewing and discussing the prototype patch. Phase 2 requires more discussion and work (see DERBY-3650).
&lt;br&gt;&amp;gt; A note about the bug behavior facts:
&lt;br&gt;&amp;gt; Since this issue is the underlying cause for several other reported issues, I have decided to be liberal when setting the bug behavior facts. Depending on where the duplicate column selection is used, it can cause both crashes, wrong results and data corruption.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4477%29-Selecting---projecting-a-column-whose-value-is-represented-by-a-stream-more-than-once-fails-tp26794610p26794703.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26794610</id>
	<title>[jira] Created: (DERBY-4477) Selecting / projecting a column whose value is represented by a stream more than once fails</title>
	<published>2009-12-15T05:15:18Z</published>
	<updated>2009-12-15T05:15:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">Selecting / projecting a column whose value is represented by a stream more than once fails
&lt;br&gt;-------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: DERBY-4477
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4477&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4477&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: Derby
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: Store
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 10.5.3.0, 10.4.2.0, 10.3.3.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Kristian Waagan
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Assignee: Kristian Waagan
&lt;br&gt;&lt;br&gt;&lt;br&gt;Selecting / projecting a column whose value is represented as a stream more than once crashes Derby, i.e.:
&lt;br&gt;ResultSet rs = stmt.executeQuery(&amp;quot;SELECT clobValue AS clobOne, clobValue AS clobTwo FROM mytable&amp;quot;);
&lt;br&gt;rs.getString(1);
&lt;br&gt;rs.getString(2);
&lt;br&gt;&lt;br&gt;After having looked at the class of bugs having to do with reuse of stream data types, I now have a possible fix. It fixes DERBY-3645, DERBY-3646 and DERBY-2349 (there may be more Jiras).
&lt;br&gt;The core of the fix is cloning certain DVDs being selected/projected in multiple columns. There are two types of cloning:
&lt;br&gt;&amp;nbsp;A) materializing clone
&lt;br&gt;&amp;nbsp;B) stream clone
&lt;br&gt;&lt;br&gt;(A) can be implemented already, (B) requires code to clone a stream without materializing it. Note that the streams I'm talking about are streams originating from the store.
&lt;br&gt;&lt;br&gt;Testing revealed the following:
&lt;br&gt;&amp;nbsp;- the cost of the checks performed to figure out if cloning is required seems acceptable (negligible?)
&lt;br&gt;&amp;nbsp;- in some cases (A) has better performance than (B) because the raw data only has to be decoded once
&lt;br&gt;&amp;nbsp;- stream clones are preferred when the data value is above a certain size for several reasons:
&lt;br&gt;&amp;nbsp; &amp;nbsp; * avoids potential out-of-memory errors (and in case of a server environment, it lowers the memory pressure)
&lt;br&gt;&amp;nbsp; &amp;nbsp; * avoids decoding the whole value if the JDBC streaming APIs are used to access only parts of the value
&lt;br&gt;&amp;nbsp; &amp;nbsp; * avoids decoding overall in cases where the value isn't accessed by the client / user
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(this statement conflicts with the performance observation above)
&lt;br&gt;&lt;br&gt;We don't always know the size of a value, and since the fix code deals with all kinds of data types, it is slightly more costly to try to obtain the size.
&lt;br&gt;&lt;br&gt;What do people think about the following goal statement?
&lt;br&gt;Goals:
&lt;br&gt;----- Phase 1
&lt;br&gt;&amp;nbsp;1) No crashes or wrong results due to stream reuse when executing duplicate column selections (minus goal 4)
&lt;br&gt;&amp;nbsp;2) Minimal performance degradation for non-duplicate column selections
&lt;br&gt;&amp;nbsp;3) Only a minor performance degradation for duplicate [[LONG] VAR]CHAR [FOR BIT DATA] column selections
&lt;br&gt;----- Phase 2
&lt;br&gt;&amp;nbsp;4) No out-of-memory exceptions during execution of duplicate column selections of BLOB/CLOB
&lt;br&gt;&amp;nbsp;5) Optimize BLOB/CLOB cloning
&lt;br&gt;&lt;br&gt;I think phase 1 can proceed by reviewing and discussing the prototype patch. Phase 2 requires more discussion and work (see DERBY-3650).
&lt;br&gt;&lt;br&gt;&lt;br&gt;A note about the bug behavior facts:
&lt;br&gt;Since this issue is the underlying cause for several other reported issues, I have decided to be liberal when setting the bug behavior facts. Depending on where the duplicate column selection is used, it can cause both crashes, wrong results and data corruption.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4477%29-Selecting---projecting-a-column-whose-value-is-represented-by-a-stream-more-than-once-fails-tp26794610p26794610.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26794126</id>
	<title>[jira] Commented: (DERBY-4455) Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.</title>
	<published>2009-12-15T04:39:18Z</published>
	<updated>2009-12-15T04:39:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790725#action_12790725&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12790725#action_12790725&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Brett Wooldridge commented on DERBY-4455:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;I consider this bug fixed by the provided patch. &amp;nbsp;Therefore you are free to close the issue.
&lt;br&gt;&lt;br&gt;However, if there is indeed *unnecessary* server-side &amp;quot;re-preparation&amp;quot; of the statements (see org.apache.derby.impl.jdbc.EmbedPreparedStatement.transferParameters in the stack trace) in the case of XA connections, I would like a separate issue to be opened. &amp;nbsp;Other than that efficiency concern, the actual defect appears to be fixed by the patch and I have not encountered this exception since applying the patch.
&lt;br&gt;&lt;br&gt;I would like to see this fix integrated into the next release because I prefer not to run non-released versions of jars.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4455
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Network Server
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Mac OS X 10.6.2, Java 6, Bitronix JTA
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Brett Wooldridge
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: derby-4455-1a.diff, derby-4455-1b.diff, DerbyFailure.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possibly related to #4332?
&lt;br&gt;&amp;gt; We have encountered an error when using Prepared Statements and CLOBs. &amp;nbsp;I have read:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream&lt;/a&gt;&lt;br&gt;&amp;gt; But it does not seem applicable, as we are not re-using a stream.
&lt;br&gt;&amp;gt; The environment is this:
&lt;br&gt;&amp;gt; 1. Java 6
&lt;br&gt;&amp;gt; 2. Derby 10.5.3.0
&lt;br&gt;&amp;gt; 3. Bitronix JTA 1.3.3
&lt;br&gt;&amp;gt; We're actually using Hibernate, but I eliminated it from the equation (and the problem persists).
&lt;br&gt;&amp;gt; A summary of the failure flow is this:
&lt;br&gt;&amp;gt; 1. Start a transaction
&lt;br&gt;&amp;gt; 2. Obtain a connection from a pool of connections (for this test, the pool size is pinned at 1)
&lt;br&gt;&amp;gt; 3. Prepare a statement that inserts a CLOB.
&lt;br&gt;&amp;gt; 4. Set the parameters
&lt;br&gt;&amp;gt; 5. Add the prepared statement to a batch (but we only batch 1 -- this is to emulate what hibernate is doing as closely as possible).
&lt;br&gt;&amp;gt; 6. Execute the batch.
&lt;br&gt;&amp;gt; Everything up to this point works.
&lt;br&gt;&amp;gt; 7. Repeat steps 1-6. &amp;nbsp;But this time, the connection will be reused from the pool, and the statement will be gotten from a prepared statement cache (maintained by bitronix). &amp;nbsp;I.e. the prepared statement is re-used.
&lt;br&gt;&amp;gt; 8. Observe the following failure:
&lt;br&gt;&amp;gt; org.apache.derby.client.am.BatchUpdateException: Non-atomic batch failure. &amp;nbsp;The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.Agent.endBatchedReadChain(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchRequestX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatchX(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.client.am.PreparedStatement.executeBatch(Unknown Source)
&lt;br&gt;&amp;gt; 	at bitronix.tm.resource.jdbc.JdbcPreparedStatementHandle.executeBatch(JdbcPreparedStatementHandle.java:248)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doInsert(TestFailure.java:134)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.doPrepared(TestFailure.java:110)
&lt;br&gt;&amp;gt; 	at org.dancernetworks.TestFailure.main(TestFailure.java:55)
&lt;br&gt;&amp;gt; Nov 30, 2009 10:29:31 PM bitronix.tm.BitronixTransactionManager shutdown
&lt;br&gt;&amp;gt; INFO: shutting down Bitronix Transaction Manager
&lt;br&gt;&amp;gt; An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.transferParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.jdbc.XAStatementControl.getRealPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getPreparedStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredPreparedStatement.getStatement(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.jdbc.BrokeredStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAStatement.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Database.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.Session.close(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.closeSession(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: An IOException was thrown when reading a 'java.sql.String' from an InputStream.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	... 15 more
&lt;br&gt;&amp;gt; Caused by: java.sql.SQLException: Java exception: 'Stream has already been read and end-of-file reached and cannot be re-used.: java.io.EOFException'.
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
&lt;br&gt;&amp;gt; 	... 12 more
&lt;br&gt;&amp;gt; Caused by: java.io.EOFException: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.ReaderToUTF8Stream.read(Unknown Source)
&lt;br&gt;&amp;gt; 	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:320)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.readExternal(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.getString(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.SQLChar.setFrom(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.iapi.types.DataType.setValue(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericParameterValueSet.transferDataValues(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.execute.BaseActivation.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	at org.apache.derby.impl.sql.GenericActivationHolder.setParameters(Unknown Source)
&lt;br&gt;&amp;gt; 	... 10 more
&lt;br&gt;&amp;gt; Attached is an archived Eclipse project of a self-contained reproduction. &amp;nbsp;It includes everything needed to run, including the Bitronix 1.3.3 jar.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4455%29-Prepared-statement-failure-with-CLOB%3A-Stream-has-already-been-read-and-end-of-file-reached-and-cannot-be-re-used.-tp26575112p26794126.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26791561</id>
	<title>[jira] Resolved: (DERBY-4472) [patch] non short circuit op, could cause eof problems</title>
	<published>2009-12-15T00:50:18Z</published>
	<updated>2009-12-15T00:50:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Kristian Waagan resolved DERBY-4472.
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Resolution: Fixed
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fix Version/s: 10.6.0.0
&lt;br&gt;&amp;nbsp; &amp;nbsp; Issue &amp; fix info: &amp;nbsp; (was: [Patch Available])
&lt;br&gt;&lt;br&gt;Thanks for the update.
&lt;br&gt;&lt;br&gt;Committed the patch to trunk with revision 890692.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [patch] non short circuit op, could cause eof problems
&lt;br&gt;&amp;gt; ------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: DERBY-4472
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4472&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4472&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Derby
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: JDBC
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 10.5.3.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Dave Brosius
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 10.6.0.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: sc.diff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (from patch)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int offset = 0;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while( offset &amp;lt; dataDirectory.length() &amp; Character.isSpaceChar( dataDirectory.charAt( offset)))
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while( offset &amp;lt; dataDirectory.length() &amp;&amp; Character.isSpaceChar( dataDirectory.charAt( offset)))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;offset ++;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int leftParen = -1;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int rightParen = -1;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28DERBY-4472%29--patch--non-short-circuit-op%2C-could-cause-eof-problems-tp26770926p26791561.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26791412</id>
	<title>[jira] Subscription: Derby: JIRA issues with patch available</title>
	<published>2009-12-15T00:36:18Z</published>
	<updated>2009-12-15T00:36:18Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">Issue Subscription
&lt;br&gt;Filter: Derby: JIRA issues with patch available (15 issues)
&lt;br&gt;Subscriber: derby-dev
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Summary
&lt;br&gt;DERBY-4405 &amp;nbsp;Transformation to inner join not performed for certain three-way joins
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4405&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4405&lt;/a&gt;&lt;br&gt;DERBY-651 &amp;nbsp; Re-enable the storing of java objects in the database
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-651&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-651&lt;/a&gt;&lt;br&gt;DERBY-4472 &amp;nbsp;[patch] non short circuit op, could cause eof problems
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4472&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4472&lt;/a&gt;&lt;br&gt;DERBY-4475 &amp;nbsp;[patch] roleName isn't trimmed as expected
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4475&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4475&lt;/a&gt;&lt;br&gt;DERBY-4463 &amp;nbsp;JMX test in nightly test suite failed with: &amp;nbsp;JMXTest:clientjava.lang.InterruptedException: &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4463&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4463&lt;/a&gt;&lt;br&gt;DERBY-4191 &amp;nbsp;Lack of SELECT privilege does not prevent SELECT COUNT(*)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4191&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4191&lt;/a&gt;&lt;br&gt;DERBY-4241 &amp;nbsp;Improve transition from read-only to writable Clob representation
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4241&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4241&lt;/a&gt;&lt;br&gt;DERBY-4455 &amp;nbsp;Prepared statement failure with CLOB: Stream has already been read and end-of-file reached and cannot be re-used.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4455&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4455&lt;/a&gt;&lt;br&gt;DERBY-4357 &amp;nbsp;TableFunctions provide no information to limit underlying query
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4357&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4357&lt;/a&gt;&lt;br&gt;DERBY-4183 &amp;nbsp;Our regression tests use various jar files for which we don't have build scripts.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4183&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4183&lt;/a&gt;&lt;br&gt;DERBY-1191 &amp;nbsp;Some SQLExceptions, for example those generated from BrokeredStatements, &amp;nbsp;do not print to derby.log even &amp;nbsp;when &amp;nbsp;derby.stream.error.logSeverityLevel=0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-1191&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-1191&lt;/a&gt;&lt;br&gt;DERBY-4272 &amp;nbsp;SQL Authorization Support for dblook
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4272&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4272&lt;/a&gt;&lt;br&gt;DERBY-873 &amp;nbsp; OSGi bundle activator not JSR169 compliant
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-873&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-873&lt;/a&gt;&lt;br&gt;DERBY-4137 &amp;nbsp;OOM issue using XA with timeouts
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-4137&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-4137&lt;/a&gt;&lt;br&gt;DERBY-3788 &amp;nbsp;Provide a zero-admin way of updating the statisitcs of an index
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://issues.apache.org/jira/browse/DERBY-3788&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/DERBY-3788&lt;/a&gt;&lt;br&gt;&lt;br&gt;You may edit this subscription at:
&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=10396&amp;filterId=12310751&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=10396&amp;filterId=12310751&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Subscription%3A-Derby%3A-JIRA-issues-with-patch-available-tp26791412p26791412.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26789030</id>
	<title>Re: Questions concerning the implementation</title>
	<published>2009-12-14T19:42:30Z</published>
	<updated>2009-12-14T19:42:30Z</updated>
	<author>
		<name>Dag H. Wanvik</name>
	</author>
	<content type="html">mkoendling &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26789030&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m_koendl@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; hi derby team,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I already posted some of my questions concerning the implementation of jdbc
&lt;br&gt;&amp;gt; in the user list: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Questions-about-the-implementation-to26689131.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Questions-about-the-implementation-to26689131.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I guess one of my problems is to figure out where the jdbc-driver starts and
&lt;br&gt;&amp;gt; where it ends. &amp;nbsp;Is it correct to say that the jdbc-driver of derby (embedded
&lt;br&gt;&amp;gt; or client) is quite intertwined with the whole engine? Or perhaps, is the
&lt;br&gt;&lt;br&gt;The embedded driver does, of course, make calls on the Derby engine,
&lt;br&gt;but the driver code is fairly well separated out, cf. the directory
&lt;br&gt;&lt;br&gt;java/engine/org/apache/derby/impl/jdbc
&lt;br&gt;&lt;br&gt;For example, EmbedResultSet.java:
&lt;br&gt;&lt;br&gt;&amp;nbsp; public abstract class EmbedResultSet extends ConnectionChild 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; implements EngineResultSet, Comparable {
&lt;br&gt;&lt;br&gt;implements java.sql.Resultset (through implementation of the the
&lt;br&gt;interface EngineResultSet).
&lt;br&gt;&lt;br&gt;&amp;gt; jdbc-driver the whole engine? 
&lt;br&gt;&lt;br&gt;No, that is not a fair statement.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My second question concerns ResultSets. How is the data actually fetched in
&lt;br&gt;&amp;gt; Client-Server mode. Is the whole ResultSet loaded into one Object/Table/...
&lt;br&gt;&amp;gt; and sent over the network? Is there some kind of cache for the ResultSet and
&lt;br&gt;&amp;gt; subsequent rows are loaded dynamically?... . 
&lt;br&gt;&lt;br&gt;The client does prefetch rows, but will ask for more rows when the
&lt;br&gt;cache is empty. The server will then use JDBC API (and hence the
&lt;br&gt;embedded driver) to get more rows from the engine and return them to
&lt;br&gt;the client, see Cursor.java/NetCursor.java. The client driver uses the
&lt;br&gt;DRDA protocol [1], which can make the code a bit hard to understand at
&lt;br&gt;first. I suggest running a debugger to get a feel for the dynamic
&lt;br&gt;structure of the code.
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://en.wikipedia.org/wiki/DRDA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/DRDA&lt;/a&gt;&lt;br&gt;&lt;br&gt;Hope this helps a bit.
&lt;br&gt;&lt;br&gt;Dag
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Developers-f91.html&quot; embed=&quot;fixTarget[91]&quot; target=&quot;_top&quot; &gt;Apache Derby Developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Questions-concerning-the-implementation-tp26766696p26789030.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26787609</id>
	<title>Re: SQLException Table does not exist although just created</title>
	<published>2009-12-14T16:36:10Z</published>
	<updated>2009-12-14T16:36:10Z</updated>
	<author>
		<name>Rick Hillegas-2</name>
	</author>
	<content type="html">Hi Bill,
&lt;br&gt;&lt;br&gt;The schema and table name arguments are case sensitive. In addition, 
&lt;br&gt;since you did not use quoted identifiers when you created the table, the 
&lt;br&gt;table name is PART_TYPE, not part_type. Try your experiment with an 
&lt;br&gt;uppercased table name.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;-Rick
&lt;br&gt;&lt;br&gt;Wildman wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am trying to move a Java database application from mySQL to the embedded
&lt;br&gt;&amp;gt; version of the Java Database (nee Derby). I successfully create an instance
&lt;br&gt;&amp;gt; of the DriverManager and make a connection. Next, I create several tables.
&lt;br&gt;&amp;gt; Next I try to use the SYSCS_UTIL.SYSCS_IMPORT utility to load data from a
&lt;br&gt;&amp;gt; CSV file into the tables I have just created. I get the following error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; java.sql.SQLException: Table 'BILL.part_type' does not exist.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...even though I have just created the table 'part_type' a few lines above. 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is this possibly related to the 'BILL' schema? When I create the tables, I
&lt;br&gt;&amp;gt; don't specify or create any schema, although I do log in as 'Bill' when I
&lt;br&gt;&amp;gt; open the database connection.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A version of my source, edited for brevity, follows.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt; -Bill
&lt;br&gt;&amp;gt; - - - - - - - - - - - - - -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Properties props = new Properties();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;user&amp;quot;, &amp;quot;Bill&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;password&amp;quot;, &amp;quot;******&amp;quot;); &amp;nbsp;// password masked in this copy
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String full_url = URL + DEFAULT_DB + &amp;quot;;create=true&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; con = DriverManager.getConnection(full_url, props);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (Exception e2) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JOptionPane.showMessageDialog(this.gui,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Sorry, got an exception creating the new database: &amp;quot; +
&lt;br&gt;&amp;gt; e2,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Fatal&amp;quot;, JOptionPane.INFORMATION_MESSAGE);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e2.printStackTrace(System.out);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // drop any existing tables - ignore errors
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sendSQL(&amp;quot;drop table part_type&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } // etc..
&lt;br&gt;&amp;gt; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sql = &amp;quot;create table part_type (&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;quot;part_type_id INTEGER NOT NULL PRIMARY KEY GENERATED
&lt;br&gt;&amp;gt; ALWAYS AS IDENTITY &amp;nbsp; (START WITH 1, INCREMENT BY 1),&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;quot;partnum varchar(20),&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;quot;name varchar(255),&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;quot;family varchar(40),&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;quot;genus varchar(20),&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;quot;image varchar(1)&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;quot;)&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sendSQL(sql); &amp;nbsp;// this sends theSQL string to the connection
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String infile = getStartDir() + File.separator + &amp;quot;Partsref.csv&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sql = &amp;quot;CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE (null, 'part_type', '&amp;quot;
&lt;br&gt;&amp;gt; + infile + &amp;quot;', null, null, null, 1)&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.err.println(sql); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sendSQL(sql); &amp;nbsp; // &amp;lt;-- exception here
&lt;br&gt;&amp;gt; - - - - - - - - - - - - - - - - - -
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Apache-Derby-Users-f93.html&quot; embed=&quot;fixTarget[93]&quot; target=&quot;_top&quot; &gt;Apache Derby Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLException-Table-does-not-exist-although-just-created-tp26780099p26787609.html" />
</entry>

</feed>
