Advertisement
Guest User

antixml stackoverflow bug

a guest
Nov 28th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.88 KB | None | 0 0
  1. <!-- RSS generated by JIRA (Enterprise Edition, Version: 3.10.1-#261) at Wed Aug 15 13:57:18 PDT 2007 -->
  2. <!-- If you wish to do custom client-side styling of RSS, uncomment this:
  3. <?xml-stylesheet href="https://issues.apache.org:443/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
  4. -->
  5. <rss version="0.92">
  6. <channel>
  7. <title>ASF JIRA</title>
  8. <link>https://issues.apache.org:443/jira/secure/IssueNavigator.jspa?reset=true&amp;pid=10594&amp;fixfor=12312590&amp;resolution=1&amp;sorter/field=issuekey&amp;sorter/order=DESC</link>
  9. <description>An XML representation of a search request</description>
  10. <language>en-uk</language>
  11. <item>
  12. <title>[DERBY-2980] three test failed with 'java.security.AccessControlException</title>
  13. <link>https://issues.apache.org:443/jira/browse/DERBY-2980</link>
  14.  
  15. <description>The following tests failed with java.security.AccessControlException:&lt;br/&gt;
  16. derbyall/derbyall.fail:tools/importExportThruIJ.sql&lt;br/&gt;
  17. derbyall/derbyall.fail:i18n/UnicodeEscape_JP.sql&lt;br/&gt;
  18. derbyall/derbyall.fail:i18n/iepnegativetests_ES.sql&lt;br/&gt;
  19. &lt;br/&gt;
  20. Diff is as following:&lt;br/&gt;
  21. &lt;br/&gt;
  22. ********* Diff file derbyall/derbytools/importExportThruIJ.diff&lt;br/&gt;
  23. *** Start: importExportThruIJ jdk1.4.2 derbyall:derbytools 2007-07-24 19:37:56 ***&lt;br/&gt;
  24. 838 del&lt;br/&gt;
  25. &amp;lt; 0 rows inserted/updated/deleted&lt;br/&gt;
  26. 838a838,839&lt;br/&gt;
  27. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/derby-2925.txt read)'.&lt;br/&gt;
  28. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/derby-2925.txt read): java.security.AccessControlException'.&lt;br/&gt;
  29. 846 del&lt;br/&gt;
  30. &amp;lt; ERROR XIE0S: The export operation was not performed, because the specified output file (extout/derby-2925.txt) already exists. Export processing will not overwrite an existing file, even if the process has permissions to write to that file, due to security concerns, and to avoid accidental file damage. Please either change the output file name in the export procedure arguments to specify a file which does not exist, or delete the existing file, then retry the export operation.&lt;br/&gt;
  31. 846a847,848&lt;br/&gt;
  32. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/derby-2925.txt read)'.&lt;br/&gt;
  33. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/derby-2925.txt read): java.security.AccessControlException'.&lt;br/&gt;
  34. 852 del&lt;br/&gt;
  35. &amp;lt; 0 rows inserted/updated/deleted&lt;br/&gt;
  36. 852a854,855&lt;br/&gt;
  37. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/derby-2925-query.dat read)'.&lt;br/&gt;
  38. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/derby-2925-query.dat read): java.security.AccessControlException'.&lt;br/&gt;
  39. 860 del&lt;br/&gt;
  40. &amp;lt; ERROR XIE0S: The export operation was not performed, because the specified output file (extout/derby-2925-query.dat) already exists. Export processing will not overwrite an existing file, even if the process has permissions to write to that file, due to security concerns, and to avoid accidental file damage. Please either change the output file name in the export procedure arguments to specify a file which does not exist, or delete the existing file, then retry the export operation.&lt;br/&gt;
  41. 860a863,864&lt;br/&gt;
  42. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/derby-2925-query.dat read)'.&lt;br/&gt;
  43. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/derby-2925-query.dat read): java.security.AccessControlException'.&lt;br/&gt;
  44. 878 del&lt;br/&gt;
  45. &amp;lt; 0 rows inserted/updated/deleted&lt;br/&gt;
  46. 878a882,883&lt;br/&gt;
  47. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/derby-2925_data.dat read)'.&lt;br/&gt;
  48. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/derby-2925_data.dat read): java.security.AccessControlException'.&lt;br/&gt;
  49. 886 del&lt;br/&gt;
  50. &amp;lt; ERROR XIE0S: The export operation was not performed, because the specified output file (extout/derby-2925_data.dat) already exists. Export processing will not overwrite an existing file, even if the process has permissions to write to that file, due to security concerns, and to avoid accidental file damage. Please either change the output file name in the export procedure arguments to specify a file which does not exist, or delete the existing file, then retry the export operation.&lt;br/&gt;
  51. 886a891,892&lt;br/&gt;
  52. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/derby-2925_data.dat read)'.&lt;br/&gt;
  53. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/derby-2925_data.dat read): java.security.AccessControlException'.&lt;br/&gt;
  54. 897 del&lt;br/&gt;
  55. &amp;lt; ERROR XIE0T: The export operation was not performed, because the specified large object auxiliary file (extout/derby-2925_lobs.dat) already exists. Export processing will not overwrite an existing file, even if the process has permissions to write to that file, due to security concerns, and to avoid accidental file damage. Please either change the large object auxiliary file name in the export procedure arguments to specify a file which does not exist, or delete the existing file, then retry the export operation.&lt;br/&gt;
  56. 897a903,904&lt;br/&gt;
  57. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/derby-2925_data1.dat read)'.&lt;br/&gt;
  58. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/derby-2925_data1.dat read): java.security.AccessControlException'.&lt;br/&gt;
  59. Test Failed.&lt;br/&gt;
  60. *** End: importExportThruIJ jdk1.4.2 derbyall:derbytools 2007-07-24 19:38:17 ***&lt;br/&gt;
  61. &lt;br/&gt;
  62. &lt;br/&gt;
  63. ********* Diff file derbyall/i18nTest/UnicodeEscape_JP.diff&lt;br/&gt;
  64. *** Start: UnicodeEscape_JP jdk1.4.2 derbyall:i18nTest 2007-07-24 20:52:28 ***&lt;br/&gt;
  65. 71 del&lt;br/&gt;
  66. &amp;lt; 0 rows inserted/updated/deleted&lt;br/&gt;
  67. 71a71,72&lt;br/&gt;
  68. &amp;gt; ERROR XJ001: Java exception: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/jtest.unl read)'.&lt;br/&gt;
  69. &amp;gt; ERROR XJ001: Java exception: 'access denied (java.io.FilePermission extout/jtest.unl read): java.security.AccessControlException'.&lt;br/&gt;
  70. Test Failed.&lt;br/&gt;
  71. *** End: UnicodeEscape_JP jdk1.4.2 derbyall:i18nTest 2007-07-24 20:52:39 ***&lt;br/&gt;
  72. &lt;br/&gt;
  73. ********* Diff file derbyall/i18nTest/iepnegativetests_ES.diff&lt;br/&gt;
  74. *** Start: iepnegativetests_ES jdk1.4.2 derbyall:i18nTest 2007-07-24 20:53:49 ***&lt;br/&gt;
  75. 48 del&lt;br/&gt;
  76. &amp;lt; ERROR XIE0I: Se ha producido una excepci EnC:&amp;gt;243&amp;lt; n de E/S al grabar datos en el archivo.&lt;br/&gt;
  77. 49 del&lt;br/&gt;
  78. &amp;lt; ERROR XJ001: Excepci EnC:&amp;gt;243&amp;lt; n de Java: ': java.io.FileNotFoundException'.&lt;br/&gt;
  79. 49a48,49&lt;br/&gt;
  80. &amp;gt; ERROR XJ001: Excepci EnC:&amp;gt;243&amp;lt; n de Java: 'java.security.AccessControlException: access denied (java.io.FilePermission extout/nodir/t1.dat read)'.&lt;br/&gt;
  81. &amp;gt; ERROR XJ001: Excepci EnC:&amp;gt;243&amp;lt; n de Java: ': java.security.AccessControlException'.&lt;br/&gt;
  82. Test Failed.&lt;br/&gt;
  83. *** End: iepnegativetests_ES jdk1.4.2 derbyall:i18nTest 2007-07-24 20:54:09 ***&lt;br/&gt;
  84. &lt;br/&gt;
  85. &lt;br/&gt;
  86. &lt;br/&gt;
  87. &lt;br/&gt;
  88. </description>
  89. <environment/>
  90. <key id="12374748">DERBY-2980</key>
  91. <summary>three test failed with 'java.security.AccessControlException</summary>
  92. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  93.  
  94. <priority id="3" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
  95. <status id="5" iconUrl="https://issues.apache.org:443/jira/images/icons/status_resolved.gif">Resolved</status>
  96. <resolution id="1">Fixed</resolution>
  97.  
  98.  
  99. <assignee username="moazeni">Ramin Moazeni</assignee>
  100.  
  101. <reporter username="ramand">Ramandeep Kaur</reporter>
  102.  
  103. <created>Thu, 26 Jul 2007 15:48:56 -0700 (PDT)</created>
  104. <updated>Wed, 1 Aug 2007 15:12:18 -0700 (PDT)</updated>
  105.  
  106. <version>10.4.0.0</version>
  107.  
  108. <fixVersion>10.3.1.4</fixVersion>
  109. <fixVersion>10.4.0.0</fixVersion>
  110.  
  111. <component>Regression Test Failure</component>
  112.  
  113. <due/>
  114.  
  115. <votes>0</votes>
  116.  
  117.  
  118.  
  119. <comments>
  120. <comment author="myrna" created="Thu, 26 Jul 2007 17:00:47 -0700 (PDT)">I believe this may be linked to the changes for &lt;a href="https://issues.apache.org/jira/browse/DERBY-2925" title="Prevent export from overwriting existing files"&gt;&lt;strike&gt;DERBY-2925&lt;/strike&gt;&lt;/a&gt;.</comment>
  121. <comment author="moazeni" created="Thu, 26 Jul 2007 19:13:33 -0700 (PDT)">Thanks for reporting the issue Ramandip..I am working to resolve&lt;br/&gt;
  122. to issue.&lt;br/&gt;
  123. &lt;br/&gt;
  124. Thanks&lt;br/&gt;
  125. Ramin</comment>
  126. <comment author="moazeni" created="Wed, 1 Aug 2007 14:50:32 -0700 (PDT)">resolved in trunk (revision #561546) and 10.3 (revision #561638)&lt;br/&gt;
  127. </comment>
  128. </comments>
  129.  
  130. <issuelinks>
  131. <issuelinktype id="10030">
  132. <name>Reference</name>
  133. <outwardlinks description="relates to">
  134. <issuelink>
  135. <issuekey id="12373566">DERBY-2925</issuekey>
  136. </issuelink>
  137. </outwardlinks>
  138. </issuelinktype>
  139. </issuelinks>
  140. <attachments>
  141. </attachments>
  142.  
  143. <subtasks>
  144. </subtasks>
  145.  
  146. <customfields>
  147. <customfield id="customfield_12310050" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
  148. <customfieldname>Urgency</customfieldname>
  149. <customfieldvalues>
  150. <customfieldvalue><![CDATA[Normal]]></customfieldvalue>
  151.  
  152. </customfieldvalues>
  153. </customfield>
  154. </customfields>
  155.  
  156. </item>
  157.  
  158. <item>
  159. <title>[DERBY-2974] Getting Started guide source still has gsconrefs.dita file</title>
  160. <link>https://issues.apache.org:443/jira/browse/DERBY-2974</link>
  161.  
  162. <description>The book-specific conrefs files were replaced by a single conrefs.dita file in the src directory, but the src/getstart/gsconrefs.dita file is still there. There are no references to this file, and it can safely be removed.</description>
  163. <environment/>
  164. <key id="12374481">DERBY-2974</key>
  165. <summary>Getting Started guide source still has gsconrefs.dita file</summary>
  166. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  167.  
  168. <priority id="5" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_trivial.gif">Trivial</priority>
  169. <status id="5" iconUrl="https://issues.apache.org:443/jira/images/icons/status_resolved.gif">Resolved</status>
  170. <resolution id="1">Fixed</resolution>
  171.  
  172.  
  173. <assignee username="scotsmatrix">Laura Stewart</assignee>
  174.  
  175. <reporter username="chaase3">Kim Haase</reporter>
  176.  
  177. <created>Tue, 24 Jul 2007 10:44:07 -0700 (PDT)</created>
  178. <updated>Wed, 1 Aug 2007 06:41:43 -0700 (PDT)</updated>
  179.  
  180. <version>10.3.1.4</version>
  181.  
  182. <fixVersion>10.3.1.4</fixVersion>
  183.  
  184. <component>Documentation</component>
  185.  
  186. <due/>
  187.  
  188. <votes>0</votes>
  189.  
  190.  
  191.  
  192. <comments>
  193. <comment author="scotsmatrix" created="Tue, 31 Jul 2007 16:34:44 -0700 (PDT)">Removed the unnecessary file.&lt;br/&gt;
  194. Committed revision 561591 to the trunk. &lt;br/&gt;
  195. &lt;br/&gt;
  196. Committed revision 561597 to the 10.3 branch.&lt;br/&gt;
  197. </comment>
  198. <comment author="chaase3" created="Wed, 1 Aug 2007 06:41:43 -0700 (PDT)">Thanks very much for fixing this, Laura!</comment>
  199. </comments>
  200.  
  201. <attachments>
  202. </attachments>
  203.  
  204. <subtasks>
  205. </subtasks>
  206.  
  207. <customfields>
  208. </customfields>
  209.  
  210. </item>
  211.  
  212. <item>
  213. <title>[DERBY-2973] With collation TERRITORY_BASED, insert into table after changing type of column causes assert failure and loss of connection</title>
  214. <link>https://issues.apache.org:443/jira/browse/DERBY-2973</link>
  215.  
  216. <description>ij(CONNECTION1)&amp;gt; create table d (id int not null, t_bigvarchar varchar(400), unique (id));&lt;br/&gt;
  217. 0 rows inserted/updated/deleted&lt;br/&gt;
  218. ij(CONNECTION1)&amp;gt; create index t_bigvarchar_ind on d ( t_bigvarchar);&lt;br/&gt;
  219. 0 rows inserted/updated/deleted&lt;br/&gt;
  220. ij(CONNECTION1)&amp;gt; alter table d alter t_bigvarchar set data type varchar(4096);&lt;br/&gt;
  221. 0 rows inserted/updated/deleted&lt;br/&gt;
  222. ij(CONNECTION1)&amp;gt; insert into d (id, t_bigvarchar) values (1,'hello');&lt;br/&gt;
  223. ERROR XJ001: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.SQLVarchartype of t&lt;br/&gt;
  224. emplate column[0] = org.apache.derby.iapi.types.CollatorSQLVarchar: org.apache.derby.shared.common.sanity.AssertFailure'&lt;br/&gt;
  225. .&lt;br/&gt;
  226. ij(CONNECTION1)&amp;gt;</description>
  227. <environment/>
  228. <key id="12374476">DERBY-2973</key>
  229. <summary>With collation TERRITORY_BASED, insert into table after changing type of column causes assert failure and loss of connection</summary>
  230. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  231.  
  232. <priority id="2" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_critical.gif">Critical</priority>
  233. <status id="5" iconUrl="https://issues.apache.org:443/jira/images/icons/status_resolved.gif">Resolved</status>
  234. <resolution id="1">Fixed</resolution>
  235.  
  236.  
  237. <assignee username="mamtas">Mamta A. Satoor</assignee>
  238.  
  239. <reporter username="kmarsden">Kathey Marsden</reporter>
  240.  
  241. <created>Tue, 24 Jul 2007 10:03:45 -0700 (PDT)</created>
  242. <updated>Fri, 27 Jul 2007 09:44:31 -0700 (PDT)</updated>
  243.  
  244. <version>10.4.0.0</version>
  245.  
  246. <fixVersion>10.3.1.4</fixVersion>
  247. <fixVersion>10.4.0.0</fixVersion>
  248.  
  249. <component>SQL</component>
  250.  
  251. <due/>
  252.  
  253. <votes>0</votes>
  254.  
  255.  
  256.  
  257. <comments>
  258. <comment author="kmarsden" created="Tue, 24 Jul 2007 10:04:51 -0700 (PDT)">found during collation testing. store/access.sql failed with this error</comment>
  259. <comment author="mamtas" created="Fri, 27 Jul 2007 08:55:17 -0700 (PDT)">Committed changes for this jira entry into main using revision 560289. Will merge into 10.3 codeline shortly. The commit comments were as follows&lt;br/&gt;
  260. &lt;br/&gt;
  261. &lt;br/&gt;
  262. ALTER TABLE MODIFY COLUMN should maintain the collation info when the column being altered is character string type. The changes for this went into as a new method in ModifyColumnNode which gets called during the bind phase.&lt;br/&gt;
  263. </comment>
  264. <comment author="mamtas" created="Fri, 27 Jul 2007 09:44:31 -0700 (PDT)">Merging changes from main into 10.3 codeline with revision 560307.</comment>
  265. </comments>
  266.  
  267. <issuelinks>
  268. <issuelinktype id="10030">
  269. <name>Reference</name>
  270. <inwardlinks description="is related to">
  271. <issuelink>
  272. <issuekey id="12369433">DERBY-2656</issuekey>
  273. </issuelink>
  274. </inwardlinks>
  275. </issuelinktype>
  276. </issuelinks>
  277. <attachments>
  278. </attachments>
  279.  
  280. <subtasks>
  281. </subtasks>
  282.  
  283. <customfields>
  284. </customfields>
  285.  
  286. </item>
  287.  
  288. <item>
  289. <title>[DERBY-2966] rs.moveToInsertRow() causes loss of connection with TERRITORY_BASED collation.</title>
  290. <link>https://issues.apache.org:443/jira/browse/DERBY-2966</link>
  291.  
  292. <description>In the attached test case, rs.moveToInsertRow() causes loss of the connection with a TERRITORY_BASED collation database. With UCS_BASIC it is fine.&lt;br/&gt;
  293. &lt;br/&gt;
  294. </description>
  295. <environment/>
  296. <key id="12374298">DERBY-2966</key>
  297. <summary>rs.moveToInsertRow() causes loss of connection with TERRITORY_BASED collation.</summary>
  298. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  299.  
  300. <priority id="2" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_critical.gif">Critical</priority>
  301. <status id="6" iconUrl="https://issues.apache.org:443/jira/images/icons/status_closed.gif">Closed</status>
  302. <resolution id="1">Fixed</resolution>
  303.  
  304.  
  305. <assignee username="mamtas">Mamta A. Satoor</assignee>
  306.  
  307. <reporter username="kmarsden">Kathey Marsden</reporter>
  308.  
  309. <created>Fri, 20 Jul 2007 13:56:26 -0700 (PDT)</created>
  310. <updated>Thu, 26 Jul 2007 09:34:00 -0700 (PDT)</updated>
  311.  
  312. <version>10.4.0.0</version>
  313.  
  314. <fixVersion>10.3.1.4</fixVersion>
  315. <fixVersion>10.4.0.0</fixVersion>
  316.  
  317. <component>JDBC</component>
  318.  
  319. <due/>
  320.  
  321. <votes>0</votes>
  322.  
  323.  
  324.  
  325. <comments>
  326. <comment author="kmarsden" created="Fri, 20 Jul 2007 14:01:42 -0700 (PDT)">java NoConnectionBug&lt;br/&gt;
  327. &lt;br/&gt;
  328. &lt;br/&gt;
  329. &amp;nbsp;UCS_BASIC collation&lt;br/&gt;
  330. &amp;nbsp;&amp;nbsp;Testing updateShort on SQL type SMALLINT&lt;br/&gt;
  331. PASS: moveInsertRow did not cause loss of connection&lt;br/&gt;
  332. &lt;br/&gt;
  333. [snip all ok for UCSBASIC]&lt;br/&gt;
  334. &lt;br/&gt;
  335. &lt;br/&gt;
  336. &lt;br/&gt;
  337. Territory no_NO&lt;br/&gt;
  338. &amp;nbsp;&amp;nbsp;Testing updateShort on SQL type SMALLINT&lt;br/&gt;
  339. Exception in thread &amp;quot;main&amp;quot; java.sql.SQLException: No current connection.&lt;br/&gt;
  340. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)&lt;br/&gt;
  341. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)&lt;br/&gt;
  342. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:104)&lt;br/&gt;
  343. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Util.java:208)&lt;br/&gt;
  344. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.checkExecStatus(EmbedStatement.java:1396)&lt;br/&gt;
  345. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1649)&lt;br/&gt;
  346. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeQuery(EmbedPreparedStatement.java:275)&lt;br/&gt;
  347. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at NoConnectionBug.runTestUpdateXXXAllDataTypesInsertRow(NoConnectionBug.java:171)&lt;br/&gt;
  348. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at NoConnectionBug.testUpdateXXXAllDataTypesInsertRow(NoConnectionBug.java:202)&lt;br/&gt;
  349. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at NoConnectionBug.main(NoConnectionBug.java:110)</comment>
  350. <comment author="kmarsden" created="Fri, 20 Jul 2007 14:03:17 -0700 (PDT)">This was found during collation tessting the test testUpdateXXXAllDataTypesInsertRow(org.apache.derbyTesting.functionTests.tests.lang.UpdatableResultSetTest failed with No current connection.</comment>
  351. <comment author="mamtas" created="Tue, 24 Jul 2007 10:45:23 -0700 (PDT)">Commited a patch in main (Revision: 559125) and migrated it into 10.3 codeline (Revision: 559133) . Commit comments were as follows&lt;br/&gt;
  352. &lt;br/&gt;
  353. &lt;a href="https://issues.apache.org/jira/browse/DERBY-2966" title="rs.moveToInsertRow() causes loss of connection with TERRITORY_BASED collation."&gt;&lt;strike&gt;DERBY-2966&lt;/strike&gt;&lt;/a&gt;&lt;br/&gt;
  354. &lt;br/&gt;
  355. We need to have context set up inside a moveToInsertRow code because that code tries to do DTD.getNull and getNull needs to find RuleBasedCollator which is found by relying on the context. Putting the context fixed the problem.&lt;br/&gt;
  356. &lt;br/&gt;
  357. </comment>
  358. <comment author="kmarsden" created="Tue, 24 Jul 2007 18:59:24 -0700 (PDT)">Thanks Mamta,&lt;br/&gt;
  359. &lt;br/&gt;
  360. The tests that were failing with no connection and no current row are passing now.&lt;br/&gt;
  361. </comment>
  362. <comment author="kmarsden" created="Thu, 26 Jul 2007 09:34:00 -0700 (PDT)">verified fix</comment>
  363. </comments>
  364.  
  365. <issuelinks>
  366. <issuelinktype id="10032">
  367. <name>Blocker</name>
  368. <outwardlinks description="blocks">
  369. <issuelink>
  370. <issuekey id="12369433">DERBY-2656</issuekey>
  371. </issuelink>
  372. </outwardlinks>
  373. </issuelinktype>
  374. </issuelinks>
  375. <attachments>
  376. <attachment id="12362268" name="NoConnectionBug.java" size="7617" author="kmarsden" created="Fri, 20 Jul 2007 14:01:42 -0700 (PDT)"/>
  377. </attachments>
  378.  
  379. <subtasks>
  380. </subtasks>
  381.  
  382. <customfields>
  383. </customfields>
  384.  
  385. </item>
  386.  
  387. <item>
  388. <title>[DERBY-2964] ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.SQLVarchar type of template column[0] = org.apache.derby.iapi.types.CollatorSQLVarchar when inserting row into table that has been modified with unique constraint</title>
  389. <link>https://issues.apache.org:443/jira/browse/DERBY-2964</link>
  390.  
  391. <description>Below is the test case from lang/modifyColumn.sql&lt;br/&gt;
  392. &lt;br/&gt;
  393. ij&amp;gt; connect 'jdbc:derby:nordb;create=true;territory=no_NO;collation=TERRITORY_BASED';&lt;br/&gt;
  394. ij(CONNECTION1)&amp;gt; create table t1 (vc varchar(1) not null, nvc varchar(1) not null, bv varchar(1) for bit data not null);&lt;br/&gt;
  395. &lt;br/&gt;
  396. alter table t1 add constraint uq unique (vc, nvc, bv);&lt;br/&gt;
  397. &lt;br/&gt;
  398. insert into t1 values ('p', 'p', x'01');&lt;br/&gt;
  399. insert into t1 values ('pe', 'p', x'01');&lt;br/&gt;
  400. alter table t1 alter vc set data type varchar(2);&lt;br/&gt;
  401. 0 rows inserted/updated/deleted&lt;br/&gt;
  402. ij(CONNECTION1)&amp;gt; 0 rows inserted/updated/deleted&lt;br/&gt;
  403. ij(CONNECTION1)&amp;gt; 1 row inserted/updated/deleted&lt;br/&gt;
  404. ij(CONNECTION1)&amp;gt; ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'pe' to length 1.&lt;br/&gt;
  405. java.sql.SQLException: A truncation error was encountered trying to shrink VARCHAR 'pe' to length 1.&lt;br/&gt;
  406. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)&lt;br/&gt;
  407. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:202)&lt;br/&gt;
  408. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:391)&lt;br/&gt;
  409. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:346)&lt;br/&gt;
  410. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1572)&lt;br/&gt;
  411. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:81)&lt;br/&gt;
  412. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1293)&lt;br/&gt;
  413. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:596)&lt;br/&gt;
  414. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:528)&lt;br/&gt;
  415. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.ij.executeImmediate(ij.java:330)&lt;br/&gt;
  416. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.utilMain.doCatch(utilMain.java:522)&lt;br/&gt;
  417. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:364)&lt;br/&gt;
  418. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:262)&lt;br/&gt;
  419. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.Main.go(Main.java:215)&lt;br/&gt;
  420. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:181)&lt;br/&gt;
  421. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:56)&lt;br/&gt;
  422. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.tools.ij.main(ij.java:71)&lt;br/&gt;
  423. Caused by: ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'pe' to length 1.&lt;br/&gt;
  424. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:341)&lt;br/&gt;
  425. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(SQLChar.java:1324)&lt;br/&gt;
  426. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.iapi.types.SQLVarchar.normalize(SQLVarchar.java:173)&lt;br/&gt;
  427. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.iapi.types.SQLVarchar.normalize(SQLVarchar.java:150)&lt;br/&gt;
  428. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.iapi.types.DataTypeDescriptor.normalize(DataTypeDescriptor.java:505)&lt;br/&gt;
  429. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(NormalizeResultSet.java:330)&lt;br/&gt;
  430. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(NormalizeResultSet.java:189)&lt;br/&gt;
  431. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(DMLWriteResultSet.java:125)&lt;br/&gt;
  432. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:496)&lt;br/&gt;
  433. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:370)&lt;br/&gt;
  434. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1203)&lt;br/&gt;
  435. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;... 10 more&lt;br/&gt;
  436. ij(CONNECTION1)&amp;gt; 0 rows inserted/updated/deleted&lt;br/&gt;
  437. ij(CONNECTION1)&amp;gt; insert into t1 values ('pe', 'p', x'01');&lt;br/&gt;
  438. ERROR XJ001: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.SQLVarchartype of t&lt;br/&gt;
  439. emplate column[0] = org.apache.derby.iapi.types.CollatorSQLVarchar: org.apache.derby.shared.common.sanity.AssertFailure'&lt;br/&gt;
  440. .&lt;br/&gt;
  441. java.sql.SQLException: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.SQLVarcha&lt;br/&gt;
  442. rtype of template column[0] = org.apache.derby.iapi.types.CollatorSQLVarchar: org.apache.derby.shared.common.sanity.Asse&lt;br/&gt;
  443. rtFailure'.&lt;br/&gt;
  444. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)&lt;br/&gt;
  445. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)&lt;br/&gt;
  446. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.Util.javaException(Util.java:245)&lt;br/&gt;
  447. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:403)&lt;br/&gt;
  448. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:346)&lt;br/&gt;
  449. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1572)&lt;br/&gt;
  450. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:81)&lt;br/&gt;
  451. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1293)&lt;br/&gt;
  452. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:596)&lt;br/&gt;
  453. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:528)&lt;br/&gt;
  454. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.ij.executeImmediate(ij.java:330)&lt;br/&gt;
  455. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.utilMain.doCatch(utilMain.java:522)&lt;br/&gt;
  456. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:364)&lt;br/&gt;
  457. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:262)&lt;br/&gt;
  458. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.Main.go(Main.java:215)&lt;br/&gt;
  459. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:181)&lt;br/&gt;
  460. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:56)&lt;br/&gt;
  461. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.tools.ij.main(ij.java:71)&lt;br/&gt;
  462. Caused by: org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED type of inserted column[0] = org.apache.de&lt;br/&gt;
  463. rby.iapi.types.SQLVarchartype of template column[0] = org.apache.derby.iapi.types.CollatorSQLVarchar&lt;br/&gt;
  464. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)&lt;br/&gt;
  465. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)&lt;br/&gt;
  466. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.store.access.btree.OpenBTree.isIndexableRowConsistent(OpenBTree.java:529)&lt;br/&gt;
  467. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.store.access.btree.BTreeController.doIns(BTreeController.java:385)&lt;br/&gt;
  468. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.store.access.btree.BTreeController.insert(BTreeController.java:1035)&lt;br/&gt;
  469. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.store.access.btree.index.B2IController.insert(B2IController.java:211)&lt;br/&gt;
  470. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(IndexChanger.java:455)&lt;br/&gt;
  471. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(IndexChanger.java:398)&lt;br/&gt;
  472. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.IndexChanger.insert(IndexChanger.java:605)&lt;br/&gt;
  473. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(IndexSetChanger.java:268)&lt;br/&gt;
  474. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(RowChangerImpl.java:453)&lt;br/&gt;
  475. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(InsertResultSet.java:1024)&lt;br/&gt;
  476. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:497)&lt;br/&gt;
  477. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:370)&lt;br/&gt;
  478. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1203)&lt;br/&gt;
  479. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;... 10 more&lt;br/&gt;
  480. ij(CONNECTION1)&amp;gt;</description>
  481. <environment/>
  482. <key id="12374289">DERBY-2964</key>
  483. <summary>ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.SQLVarchar type of template column[0] = org.apache.derby.iapi.types.CollatorSQLVarchar when inserting row into table that has been modified with unique constraint</summary>
  484. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  485.  
  486. <priority id="3" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
  487. <status id="6" iconUrl="https://issues.apache.org:443/jira/images/icons/status_closed.gif">Closed</status>
  488. <resolution id="1">Fixed</resolution>
  489.  
  490.  
  491. <assignee username="mamtas">Mamta A. Satoor</assignee>
  492.  
  493. <reporter username="kmarsden">Kathey Marsden</reporter>
  494.  
  495. <created>Fri, 20 Jul 2007 12:33:38 -0700 (PDT)</created>
  496. <updated>Wed, 1 Aug 2007 10:43:19 -0700 (PDT)</updated>
  497.  
  498. <version>10.4.0.0</version>
  499.  
  500. <fixVersion>10.3.1.4</fixVersion>
  501. <fixVersion>10.4.0.0</fixVersion>
  502.  
  503. <component>SQL</component>
  504.  
  505. <due/>
  506.  
  507. <votes>0</votes>
  508.  
  509.  
  510.  
  511. <comments>
  512. <comment author="kmarsden" created="Fri, 20 Jul 2007 12:36:57 -0700 (PDT)">found during collation testing&lt;br/&gt;
  513. </comment>
  514. <comment author="mamtas" created="Tue, 31 Jul 2007 23:14:47 -0700 (PDT)">I think the fix for &lt;a href="https://issues.apache.org/jira/browse/DERBY-2973" title="With collation TERRITORY_BASED, insert into table after changing type of column causes assert failure and loss of connection"&gt;&lt;strike&gt;DERBY-2973&lt;/strike&gt;&lt;/a&gt; should take care of this bug. I ran the script provided in this jira entry in both main and 10.3 codeline and the test script does not throw assert failure anymore. Kathey, will you mind double checking for me? thanks</comment>
  515. <comment author="mamtas" created="Tue, 31 Jul 2007 23:16:52 -0700 (PDT)">I will mark the issue resolved but won't close it just yet. The problem has been fixed as part of changes that went in for &lt;a href="https://issues.apache.org/jira/browse/DERBY-2973" title="With collation TERRITORY_BASED, insert into table after changing type of column causes assert failure and loss of connection"&gt;&lt;strike&gt;DERBY-2973&lt;/strike&gt;&lt;/a&gt;</comment>
  516. <comment author="kmarsden" created="Wed, 1 Aug 2007 10:42:58 -0700 (PDT)">looks fixed with test script and with lang/modifyColumn.sql run with TERRITORY_BASED collation&lt;br/&gt;
  517. </comment>
  518. </comments>
  519.  
  520. <issuelinks>
  521. <issuelinktype id="10030">
  522. <name>Reference</name>
  523. <inwardlinks description="is related to">
  524. <issuelink>
  525. <issuekey id="12369433">DERBY-2656</issuekey>
  526. </issuelink>
  527. </inwardlinks>
  528. </issuelinktype>
  529. </issuelinks>
  530. <attachments>
  531. </attachments>
  532.  
  533. <subtasks>
  534. </subtasks>
  535.  
  536. <customfields>
  537. </customfields>
  538.  
  539. </item>
  540.  
  541. <item>
  542. <title>[DERBY-2963] AccessControlException: Access denied java.net.SocketPermission &lt;client ip&gt; accept,resolve</title>
  543. <link>https://issues.apache.org:443/jira/browse/DERBY-2963</link>
  544.  
  545. <description>I start the server using an ipv4 address&lt;br/&gt;
  546. &lt;br/&gt;
  547. java derbyrun.jar server start -h x.x.x.x&lt;br/&gt;
  548. &lt;br/&gt;
  549. Then I connect from a remote client and hit an AccessControlException&lt;br/&gt;
  550. &lt;br/&gt;
  551. The ip in the exception is that of the *client*, not the server.&lt;br/&gt;
  552. &lt;br/&gt;
  553. This setup works in 10.2.2.0.&lt;br/&gt;
  554. &lt;br/&gt;
  555. Same problem if the hostname is in derby.properties&lt;br/&gt;
  556. &lt;br/&gt;
  557. Problem can be worked around by using -noSecurityManager when starting the server</description>
  558. <environment>SuseLinux 10&lt;br/&gt;
  559. IBM JVM 1.5</environment>
  560. <key id="12374281">DERBY-2963</key>
  561. <summary>AccessControlException: Access denied java.net.SocketPermission &lt;client ip&gt; accept,resolve</summary>
  562. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  563.  
  564. <priority id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_blocker.gif">Blocker</priority>
  565. <status id="5" iconUrl="https://issues.apache.org:443/jira/images/icons/status_resolved.gif">Resolved</status>
  566. <resolution id="1">Fixed</resolution>
  567.  
  568.  
  569. <assignee username="dagw">Dag H. Wanvik</assignee>
  570.  
  571. <reporter username="djd">Daniel John Debrunner</reporter>
  572.  
  573. <created>Fri, 20 Jul 2007 11:14:52 -0700 (PDT)</created>
  574. <updated>Wed, 25 Jul 2007 15:18:47 -0700 (PDT)</updated>
  575.  
  576. <version>10.3.1.4</version>
  577.  
  578. <fixVersion>10.3.1.4</fixVersion>
  579. <fixVersion>10.4.0.0</fixVersion>
  580.  
  581. <component>Network Server</component>
  582.  
  583. <due/>
  584.  
  585. <votes>0</votes>
  586.  
  587.  
  588.  
  589. <comments>
  590. <comment author="mkutty" created="Fri, 20 Jul 2007 12:17:40 -0700 (PDT)">I found it happening on both Ipv6 and Ipv4 machines. Ipv6 machines gave me the stack trace as follows&lt;br/&gt;
  591. java.security.AccessControlException: Access denied (java.net.SocketPermission [2002:92a:8f7a:13:9:42:73:218]:32813 accept,resolve)&lt;br/&gt;
  592. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.security.AccessController.checkPermission(AccessController.java:104)&lt;br/&gt;
  593. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)&lt;br/&gt;
  594. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.SecurityManager.checkAccept(SecurityManager.java:1172)&lt;br/&gt;
  595. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.net.ServerSocket.implAccept(ServerSocket.java:466)&lt;br/&gt;
  596. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.net.ServerSocket.accept(ServerSocket.java:433)&lt;br/&gt;
  597. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.drda.ClientThread$1.run(Unknown Source)&lt;br/&gt;
  598. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.security.AccessController.doPrivileged(AccessController.java:242)&lt;br/&gt;
  599. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.derby.impl.drda.ClientThread.run(Unknown Source)&lt;br/&gt;
  600. &lt;br/&gt;
  601. &lt;br/&gt;
  602. Ipv4 machine didn't give any exception other the the following error message&lt;br/&gt;
  603. ij&amp;gt;connect 'jdbc:&lt;a href="derby://incus.rtp.raleigh.ibm.com:1527/ipv6db;create=true;user=user2;password=pass2';"&gt;derby://incus.rtp.raleigh.ibm.com:1527/ipv6db;create=true;user=user2;password=pass2';&lt;/a&gt;&lt;br/&gt;
  604. ERROR 58009: Insufficient data while reading from the network - expected a minimum of 6 bytes and received only -1 bytes. The connection has been terminated.&lt;br/&gt;
  605. ij&amp;gt;&lt;br/&gt;
  606. &lt;br/&gt;
  607. &lt;br/&gt;
  608. </comment>
  609. <comment author="myrna" created="Sat, 21 Jul 2007 13:03:31 -0700 (PDT)">Just to make sure - is this only when using derbyrun.jar, or also when using NetworkServerControl directly? </comment>
  610. <comment author="mkutty" created="Sat, 21 Jul 2007 23:50:25 -0700 (PDT)">No, it is not with the derbyrun.jar. I haven't used derbyrun.jar at all. It is from using the NetworkServerControl command. Is there a known problem with the derbyrun.jar ?</comment>
  611. <comment author="myrna" created="Sun, 22 Jul 2007 07:51:07 -0700 (PDT)">&lt;br/&gt;
  612. :-) See the problem description of this bug:&lt;br/&gt;
  613. &lt;br/&gt;
  614. Dan wrote:&lt;br/&gt;
  615. &lt;br/&gt;
  616. I was pretty sure this is what you'd say, - derbyrun.jar kicks off&lt;br/&gt;
  617. NetworkServerControl - but I just wanted to be sure.&lt;br/&gt;
  618. &lt;br/&gt;
  619. My next questions are:&lt;br/&gt;
  620. - what is the difference between this approach and the steps you&lt;br/&gt;
  621. tested that worked for ipv6 for &lt;a href="https://issues.apache.org/jira/browse/DERBY-2874" title="NetworkServer not accepting connections with default security manager on Ipv6 machines"&gt;&lt;strike&gt;DERBY-2874&lt;/strike&gt;&lt;/a&gt;?&lt;br/&gt;
  622. and to pinpoint the problem better:&lt;br/&gt;
  623. - does the current problem happen with 10.3.0.0 beta? 10.3.1.1?&lt;br/&gt;
  624. - does the problem occur with 10.2.2.0 when security policy is enabled&lt;br/&gt;
  625. (i.e. is it a problem with the security policy being on by default, or&lt;br/&gt;
  626. is it a more insidious problem with network server. I'm asking because&lt;br/&gt;
  627. Dan reported the problem does not occur with 10.3.1.2 when the server&lt;br/&gt;
  628. is started with -noSecurityManager).&lt;br/&gt;
  629. &lt;br/&gt;
  630. I hope someone with access to an IPV6 can go through the hoops of&lt;br/&gt;
  631. providing these answers, or someone with understanding of the problem&lt;br/&gt;
  632. can come forward and fix it.&lt;br/&gt;
  633. I believe Rick, who implemented the secure server by default (&amp;amp;fixed&lt;br/&gt;
  634. &lt;a href="https://issues.apache.org/jira/browse/DERBY-2874" title="NetworkServer not accepting connections with default security manager on Ipv6 machines"&gt;&lt;strike&gt;DERBY-2874&lt;/strike&gt;&lt;/a&gt;) is not available this week to fix anything, so if it's in&lt;br/&gt;
  635. that area we may have to wait for more than a week for a fix unless&lt;br/&gt;
  636. someone else steps up...&lt;br/&gt;
  637. &lt;br/&gt;
  638. Myrna&lt;br/&gt;
  639. </comment>
  640. <comment author="dagw" created="Mon, 23 Jul 2007 07:47:20 -0700 (PDT)">I also see the issue regardless of whether derbyrun.jar is used or not (IPv4,&lt;br/&gt;
  641. on Solaris).&lt;br/&gt;
  642. &lt;br/&gt;
  643. It seems the default policy file installed intentionally does *not*&lt;br/&gt;
  644. open access to remote clients. I am not sure, but I seem to remember&lt;br/&gt;
  645. this being discussed (&lt;a href="https://issues.apache.org/jira/browse/DERBY-2196" title="Run standalone network server with security manager by default"&gt;&lt;strike&gt;DERBY-2196&lt;/strike&gt;&lt;/a&gt;) and found to be acceptable? However,&lt;br/&gt;
  646. the release notes do not indicate this, which would seem to indicate&lt;br/&gt;
  647. it is not the intended behavior, in which case it is a bug, not a&lt;br/&gt;
  648. &amp;quot;feature&amp;quot;.&lt;br/&gt;
  649. &lt;br/&gt;
  650. Changing this line in server.policy:&lt;br/&gt;
  651. &lt;br/&gt;
  652. permission java.net.SocketPermission &amp;quot;${derby.security.host}&amp;quot;, &amp;quot;accept&amp;quot;; &lt;br/&gt;
  653. &lt;br/&gt;
  654. to:&lt;br/&gt;
  655. &lt;br/&gt;
  656. permission java.net.SocketPermission &amp;quot;*&amp;quot;, &amp;quot;accept&amp;quot;; &lt;br/&gt;
  657. &lt;br/&gt;
  658. lets me connect from any host to the interface name given in -h option.&lt;br/&gt;
  659. </comment>
  660. <comment author="dagw" created="Mon, 23 Jul 2007 08:53:37 -0700 (PDT)">Uploading a tentative patch against 10.3 trunk widening the&lt;br/&gt;
  661. SocketPermission to &amp;quot;*&amp;quot;, &amp;quot;accept&amp;quot; (not for commit yet).&lt;br/&gt;
  662. Running regression tests now.&lt;br/&gt;
  663. &lt;br/&gt;
  664. If we make this change this we would need to update the documentation&lt;br/&gt;
  665. (and preferably the func spec).&lt;br/&gt;
  666. </comment>
  667. <comment author="djd" created="Mon, 23 Jul 2007 09:51:16 -0700 (PDT)">Does this patch work if localhost is specified as the host to listen on?&lt;br/&gt;
  668. &lt;br/&gt;
  669. Just wondering because the security documentation has the permission &amp;quot;listen&amp;quot; which is only used for localhost, so I wonder if accept works when listening on localhost.</comment>
  670. <comment author="mkutty" created="Mon, 23 Jul 2007 14:48:38 -0700 (PDT)">This was working with 551289M with Rick's fix for &lt;a href="https://issues.apache.org/jira/browse/DERBY-2874" title="NetworkServer not accepting connections with default security manager on Ipv6 machines"&gt;&lt;strike&gt;DERBY-2874&lt;/strike&gt;&lt;/a&gt; on Ipv6 machines. </comment>
  671. <comment author="dagw" created="Mon, 23 Jul 2007 15:27:55 -0700 (PDT)">Good question, Dan. My testing indicates it works, but I don't really understand why.&lt;br/&gt;
  672. I can't find anywhere that &amp;quot;listen&amp;quot; is implied by &amp;quot;accept&amp;quot;. I'll see what I can find out.&lt;br/&gt;
  673. </comment>
  674. <comment author="dagw" created="Tue, 24 Jul 2007 09:58:50 -0700 (PDT)">Did some digging on the &amp;quot;listen&amp;quot; privilege and the other socket&lt;br/&gt;
  675. privileges.&lt;br/&gt;
  676. &lt;br/&gt;
  677. The default policy file (java.home/lib/security/java.policy) contains&lt;br/&gt;
  678. this line:&lt;br/&gt;
  679. &lt;br/&gt;
  680. // allows anyone to listen on un-privileged ports&lt;br/&gt;
  681. permission java.net.SocketPermission &amp;quot;localhost:1024-&amp;quot;, &amp;quot;listen&amp;quot;;&lt;br/&gt;
  682. &lt;br/&gt;
  683. If the user specifies a port below 1024, the default policy file would&lt;br/&gt;
  684. not work for any interface. Is this acceptable? For running with root&lt;br/&gt;
  685. privileges, privileged ports is a valid use case, otherwise &amp;quot;1024-&amp;quot; is&lt;br/&gt;
  686. enough. To handle privileged ports we need to add another line the&lt;br/&gt;
  687. policy file:&lt;br/&gt;
  688. &lt;br/&gt;
  689. permission java.net.SocketPermission &amp;quot;localhost&amp;quot;, &amp;quot;listen&amp;quot;; &lt;br/&gt;
  690. &lt;br/&gt;
  691. or, to tighten it down, add code to produced the correct line e.g. so&lt;br/&gt;
  692. for IPv4 (would not work for IPv6 probably..)&lt;br/&gt;
  693. &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;
  694. permission java.net.SocketPermission &amp;quot;localhost:${derby.security.port}&amp;quot;, &amp;quot;listen&amp;quot;; &lt;br/&gt;
  695. &lt;br/&gt;
  696. (Note that even if we specify -h x.x.x.x it is still &amp;quot;localhost&amp;quot; that&lt;br/&gt;
  697. needs to get the extra privileges for listening.)&lt;br/&gt;
  698. &lt;br/&gt;
  699. Other than &amp;quot;listen&amp;quot; and &amp;quot;accept&amp;quot;, we also need &amp;quot;resolve&amp;quot;, but that is&lt;br/&gt;
  700. implied by &amp;quot;accept&amp;quot;.&lt;br/&gt;
  701. &lt;br/&gt;
  702. So in summary, the present patch is sufficient; unless we want the&lt;br/&gt;
  703. default policy to allow using privileged ports. What do you think?&lt;br/&gt;
  704. </comment>
  705. <comment author="mkutty" created="Tue, 24 Jul 2007 13:23:26 -0700 (PDT)">This solution looks fine to me. Also I don't think we should allow default policy to allow using previleged ports. I will be applying the patch and will test on both regular and ipv6 machines&lt;br/&gt;
  706. </comment>
  707. <comment author="mkutty" created="Tue, 24 Jul 2007 17:37:40 -0700 (PDT)">This patch works fine. I tested the following scenarios &lt;br/&gt;
  708. &lt;br/&gt;
  709. 1. starting the server by giving -h option with ipaddress&lt;br/&gt;
  710. java org.apache.derby.drda.NetworkServerControl start -h 9.72.143.153&lt;br/&gt;
  711. &lt;br/&gt;
  712. 2. Starting the server with -h 0.0.0.0&lt;br/&gt;
  713. java org.apache.derby.drda.NetworkServerControl start -h 0.0.0.0&lt;br/&gt;
  714. &lt;br/&gt;
  715. 3. starting the server by giving -h option with ipaddress on ipv6 machines&lt;br/&gt;
  716. java org.apache.derby.drda.NetworkServerControl start -h 2002:92a:8f7a:13:9:42:74:19&lt;br/&gt;
  717. &lt;br/&gt;
  718. &lt;br/&gt;
  719. All of them works fine. I would appreciate if we could include this patch in our release candidate&lt;br/&gt;
  720. </comment>
  721. <comment author="dagw" created="Wed, 25 Jul 2007 08:30:18 -0700 (PDT)">Committed on trunk as svn 559436. I will merge to the 10.3 branch&lt;br/&gt;
  722. as soon as my tests are done.</comment>
  723. <comment author="dagw" created="Wed, 25 Jul 2007 08:34:30 -0700 (PDT)">Uploading the the version I committed. I improved the&lt;br/&gt;
  724. comment a bit relative to the first version, since the&lt;br/&gt;
  725. tempate policy file will go into the manual, too.</comment>
  726. <comment author="dagw" created="Wed, 25 Jul 2007 11:53:21 -0700 (PDT)">Committed on the 10.3 branch as svn 559555.&lt;br/&gt;
  727. </comment>
  728. <comment author="dagw" created="Wed, 25 Jul 2007 14:25:18 -0700 (PDT)">Uploading a diff for the admin guide to it can stay in synch&lt;br/&gt;
  729. with the policy template file.</comment>
  730. <comment author="dagw" created="Wed, 25 Jul 2007 14:31:00 -0700 (PDT)">Committed doc patch (&lt;a href="https://issues.apache.org/jira/browse/DERBY-2963" title="AccessControlException: Access denied java.net.SocketPermission &amp;lt;client ip&amp;gt; accept,resolve"&gt;&lt;strike&gt;DERBY-2963&lt;/strike&gt;&lt;/a&gt;-docs-1) to doc trunk as svn 559616.&lt;br/&gt;
  731. </comment>
  732. <comment author="dagw" created="Wed, 25 Jul 2007 15:17:30 -0700 (PDT)">Merged doc patch to docs 10.3 branch as svn 559632.</comment>
  733. <comment author="dagw" created="Wed, 25 Jul 2007 15:18:47 -0700 (PDT)">Fixed in source and docs on trunk and 10.3, resolving.</comment>
  734. </comments>
  735.  
  736. <issuelinks>
  737. <issuelinktype id="10030">
  738. <name>Reference</name>
  739. <inwardlinks description="is related to">
  740. <issuelink>
  741. <issuekey id="12359060">DERBY-2196</issuekey>
  742. </issuelink>
  743. </inwardlinks>
  744. </issuelinktype>
  745. </issuelinks>
  746. <attachments>
  747. <attachment id="12362535" name="DERBY-2963-1.diff" size="1900" author="dagw" created="Wed, 25 Jul 2007 08:34:30 -0700 (PDT)"/>
  748. <attachment id="12362347" name="DERBY-2963-1.diff" size="1376" author="dagw" created="Mon, 23 Jul 2007 08:53:37 -0700 (PDT)"/>
  749. <attachment id="12362348" name="DERBY-2963-1.stat" size="108" author="dagw" created="Mon, 23 Jul 2007 08:53:37 -0700 (PDT)"/>
  750. <attachment id="12362559" name="DERBY-2963-docs-1.diff" size="960" author="dagw" created="Wed, 25 Jul 2007 14:25:18 -0700 (PDT)"/>
  751. <attachment id="12362560" name="DERBY-2963-docs-1.stat" size="46" author="dagw" created="Wed, 25 Jul 2007 14:25:18 -0700 (PDT)"/>
  752. </attachments>
  753.  
  754. <subtasks>
  755. </subtasks>
  756.  
  757. <customfields>
  758. <customfield id="customfield_12310090" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
  759. <customfieldname>Derby Info</customfieldname>
  760. <customfieldvalues>
  761. <customfieldvalue><![CDATA[Regression]]></customfieldvalue>
  762.  
  763. </customfieldvalues>
  764. </customfield>
  765. </customfields>
  766.  
  767. </item>
  768.  
  769. <item>
  770. <title>[DERBY-2960] Group by substr() on collated database causes ERROR XJ001: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLVarchar) expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.CollatorSQLVarchar):</title>
  771. <link>https://issues.apache.org:443/jira/browse/DERBY-2960</link>
  772.  
  773. <description>ij&amp;gt; create table alltypes (i int, s smallint, l bigint, c char(10), v varchar(50), lvc long varchar,d double precision,&lt;br/&gt;
  774. r real, dt date, t time, ts timestamp, b char(2) for bit data, bv varchar(8) for bit data, lbv long varchar for bit data&lt;br/&gt;
  775. , dc decimal(5,2));&lt;br/&gt;
  776. 0 rows inserted/updated/deleted&lt;br/&gt;
  777. ij&amp;gt; select substr(c||v, 1, 4), count(*) from alltypes group by substr(c||v, 1, 4) ;&lt;br/&gt;
  778. 1 |2&lt;br/&gt;
  779. ----------------&lt;br/&gt;
  780. &lt;br/&gt;
  781. 0 rows selected&lt;br/&gt;
  782. ij&amp;gt; insert into alltypes values (0, 100, 1000000, 'duplicate', 'this is duplicated', 'also duplicated',200.0e0, 200.0e0,&lt;br/&gt;
  783. &amp;nbsp;date('1992-01-01'), time('12:30:30'), timestamp('1992-01-01 12:30:30'), X'12af', x'0000111100001111', X'1234', 111.11)&lt;br/&gt;
  784. ;&lt;br/&gt;
  785. 1 row inserted/updated/deleted&lt;br/&gt;
  786. ij&amp;gt; insert into alltypes values (0, 100, 1000000, 'duplicate', 'this is duplicated', 'also duplicated',200.0e0, 200.0e0,&lt;br/&gt;
  787. &amp;nbsp;date('1992-01-01'), time('12:30:30'), timestamp('1992-01-01 12:30:30'), X'12af', x'0000111100001111', X'1234', 111.11)&lt;br/&gt;
  788. ;&lt;br/&gt;
  789. 1 row inserted/updated/deleted&lt;br/&gt;
  790. ij&amp;gt; select substr(c||v, 1, 4), count(*) from alltypes group by substr(c||v, 1, 4) ;&lt;br/&gt;
  791. ERROR XJ001: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLVarchar) expected to b&lt;br/&gt;
  792. e the same as col2.getClass() (class org.apache.derby.iapi.types.CollatorSQLVarchar): org.apache.derby.shared.common.san&lt;br/&gt;
  793. ity.AssertFailure'.&lt;br/&gt;
  794. &lt;br/&gt;
  795. </description>
  796. <environment/>
  797. <key id="12374192">DERBY-2960</key>
  798. <summary>Group by substr() on collated database causes ERROR XJ001: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLVarchar) expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.CollatorSQLVarchar):</summary>
  799. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  800.  
  801. <priority id="3" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
  802. <status id="6" iconUrl="https://issues.apache.org:443/jira/images/icons/status_closed.gif">Closed</status>
  803. <resolution id="1">Fixed</resolution>
  804.  
  805.  
  806. <assignee username="mamtas">Mamta A. Satoor</assignee>
  807.  
  808. <reporter username="kmarsden">Kathey Marsden</reporter>
  809.  
  810. <created>Thu, 19 Jul 2007 11:57:32 -0700 (PDT)</created>
  811. <updated>Fri, 20 Jul 2007 09:58:27 -0700 (PDT)</updated>
  812.  
  813. <version>10.4.0.0</version>
  814.  
  815. <fixVersion>10.3.1.4</fixVersion>
  816. <fixVersion>10.4.0.0</fixVersion>
  817.  
  818. <component>SQL</component>
  819.  
  820. <due/>
  821.  
  822. <votes>0</votes>
  823.  
  824.  
  825.  
  826. <comments>
  827. <comment author="kmarsden" created="Thu, 19 Jul 2007 11:59:31 -0700 (PDT)">This issue was found during collation testing. Below is the test failure and trace;&lt;br/&gt;
  828. 1) testMiscExpressions(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.sql.SQLException: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLVarchar) expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.CollatorSQLVarchar): org.apache.derby.shared.common.sanity.AssertFailure'.&lt;br/&gt;
  829. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)&lt;br/&gt;
  830. at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)&lt;br/&gt;
  831. at org.apache.derby.impl.jdbc.Util.javaException(Util.java:245)&lt;br/&gt;
  832. at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:403)&lt;br/&gt;
  833. at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:346)&lt;br/&gt;
  834. at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1572)&lt;br/&gt;
  835. at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:81)&lt;br/&gt;
  836. at &amp;lt;unknown class&amp;gt;.&amp;lt;unknown method&amp;gt;(Unknown Source)&lt;br/&gt;
  837. at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1652)&lt;br/&gt;
  838. at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeQuery(EmbedPreparedStatement.java:275)&lt;br/&gt;
  839. at org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest.verifyQueryResults(GroupByExpressionTest.java:430)&lt;br/&gt;
  840. at org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest.testMiscExpressions(GroupByExpressionTest.java:209)&lt;br/&gt;
  841. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
  842. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)&lt;br/&gt;
  843. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
  844. at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)&lt;br/&gt;
  845. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  846. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  847. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  848. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  849. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  850. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  851. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  852. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  853. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  854. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  855. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  856. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  857. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  858. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  859. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  860. Caused by: org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLVarchar) expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.CollatorSQLVarchar)&lt;br/&gt;
  861. at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)&lt;br/&gt;
  862. at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)&lt;br/&gt;
  863. at org.apache.derby.impl.store.access.sort.MergeSort.checkColumnTypes(MergeSort.java:467)&lt;br/&gt;
  864. at org.apache.derby.impl.store.access.sort.MergeInserter.insert(MergeInserter.java:98)&lt;br/&gt;
  865. at org.apache.derby.impl.sql.execute.GroupedAggregateResultSet.loadSorter(GroupedAggregateResultSet.java:308)&lt;br/&gt;
  866. at org.apache.derby.impl.sql.execute.GroupedAggregateResultSet.openCore(GroupedAggregateResultSet.java:180)&lt;br/&gt;
  867. at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.openCore(ProjectRestrictResultSet.java:168)&lt;br/&gt;
  868. at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.open(BasicNoPutResultSetImpl.java:258)&lt;br/&gt;
  869. at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:370)&lt;br/&gt;
  870. at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1203)&lt;br/&gt;
  871. ... 45 more&lt;br/&gt;
  872. &lt;br/&gt;
  873. &lt;br/&gt;
  874. </comment>
  875. <comment author="mamtas" created="Fri, 20 Jul 2007 01:38:59 -0700 (PDT)">It appears that we are generating SQLVarchar rather than CollatorSQLVarchar for the query above. I am working on the problem.</comment>
  876. <comment author="mamtas" created="Fri, 20 Jul 2007 09:57:47 -0700 (PDT)">Checked in a fix for this into main (558036) and 10.3 codeline (558049). The commit comments were as follows&lt;br/&gt;
  877. &lt;br/&gt;
  878. &amp;quot;select&amp;quot; query failed because we were generating SQLVarchar rather than CollatorSQLVarchar&lt;br/&gt;
  879. create table alltypes (c char(10), v varchar(50));&lt;br/&gt;
  880. insert into alltypes values ('duplicate', 'is duplicated');&lt;br/&gt;
  881. select substr(c||v, 1, 4), count(*) from alltypes group by substr(c||v, 1, 4) ;&lt;br/&gt;
  882. &lt;br/&gt;
  883. To fix the problem, I needed to override StringDataValue getNewVarchar() in CollatorSQLVarchar. Without this new method, we were generating SQLVarchar in territory based databased when the collation type was territory based.&lt;br/&gt;
  884. &lt;br/&gt;
  885. </comment>
  886. </comments>
  887.  
  888. <issuelinks>
  889. <issuelinktype id="10030">
  890. <name>Reference</name>
  891. <inwardlinks description="is related to">
  892. <issuelink>
  893. <issuekey id="12369433">DERBY-2656</issuekey>
  894. </issuelink>
  895. </inwardlinks>
  896. </issuelinktype>
  897. </issuelinks>
  898. <attachments>
  899. </attachments>
  900.  
  901. <subtasks>
  902. </subtasks>
  903.  
  904. <customfields>
  905. </customfields>
  906.  
  907. </item>
  908.  
  909. <item>
  910. <title>[DERBY-2959] create table ... as select ... from systemtable with no data fails even when there is no character string type involved. This happens in a territory based database</title>
  911. <link>https://issues.apache.org:443/jira/browse/DERBY-2959</link>
  912.  
  913. <description>Following query should fail because we are trying to create a user table with UCS_BASIC character columns when the user schema has collation of territory based.&lt;br/&gt;
  914. CREATE TABLE T AS SELECT TABLENAME FROM SYS.SYSTABLES WITH NO DATA&lt;br/&gt;
  915. &lt;br/&gt;
  916. But the following query should not fail because there are no character string columns involved. This jira entry is to fix the exception that is getting thrown for the query below&lt;br/&gt;
  917. CREATE TABLE T AS SELECT COLUMNNUMBER FROM SYS.SYSCOLUMNS WITH NO DATA&lt;br/&gt;
  918. &lt;br/&gt;
  919. I have put in a fix for this in main using revision 557693. The commit comments were as follows &lt;br/&gt;
  920. &lt;br/&gt;
  921. This commit has 2 simple fixes (&lt;a href="https://issues.apache.org/jira/browse/DERBY-2951" title="BatchUpdateTest.testAssociatedParams test fails with collation with exception: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: "&gt;&lt;strike&gt;DERBY-2951&lt;/strike&gt;&lt;/a&gt; which gives assert failure and &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt; The table will have collation type UCS_BASIC which is different than the collation of the schema TERRITORY_BASED hence this operation is not supported.) &lt;br/&gt;
  922. &lt;br/&gt;
  923. The failure in &lt;a href="https://issues.apache.org/jira/browse/DERBY-2951" title="BatchUpdateTest.testAssociatedParams test fails with collation with exception: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: "&gt;&lt;strike&gt;DERBY-2951&lt;/strike&gt;&lt;/a&gt; is because in store, we were not using correct format id and hence collation information was not getting written out and read from disk. Added a test case for this in CollationTest. &lt;br/&gt;
  924. &lt;br/&gt;
  925. The failure in &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt; was because of the bug that we were comparing collation type for non-character types. Collation is only applicable to character types and hence we should check for character types before comparing the collation info. Added a test case for this one too. </description>
  926. <environment/>
  927. <key id="12374180">DERBY-2959</key>
  928. <summary>create table ... as select ... from systemtable with no data fails even when there is no character string type involved. This happens in a territory based database</summary>
  929. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  930.  
  931. <priority id="3" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
  932. <status id="6" iconUrl="https://issues.apache.org:443/jira/images/icons/status_closed.gif">Closed</status>
  933. <resolution id="1">Fixed</resolution>
  934.  
  935.  
  936. <assignee username="mamtas">Mamta A. Satoor</assignee>
  937.  
  938. <reporter username="mamtas">Mamta A. Satoor</reporter>
  939.  
  940. <created>Thu, 19 Jul 2007 10:53:58 -0700 (PDT)</created>
  941. <updated>Mon, 23 Jul 2007 10:05:45 -0700 (PDT)</updated>
  942.  
  943. <version>10.3.1.4</version>
  944.  
  945. <fixVersion>10.3.1.4</fixVersion>
  946. <fixVersion>10.4.0.0</fixVersion>
  947.  
  948. <component>SQL</component>
  949.  
  950. <due/>
  951.  
  952. <votes>0</votes>
  953.  
  954.  
  955.  
  956. <comments>
  957. <comment author="mamtas" created="Thu, 19 Jul 2007 11:01:47 -0700 (PDT)">This issue was found while doing testing in &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt;</comment>
  958. <comment author="mamtas" created="Thu, 19 Jul 2007 11:15:08 -0700 (PDT)">Merged change into 10.3 codeline using revision 557716</comment>
  959. <comment author="mamtas" created="Thu, 19 Jul 2007 22:49:15 -0700 (PDT)">Not sure if this made it into 10.3.1.3 but the fix is in main and 10.3 codeline.</comment>
  960. <comment author="myrna" created="Sat, 21 Jul 2007 12:47:38 -0700 (PDT)">yes, revision 557716 is older 557799, so it's in 10.3.1.3. You may consider correcting the commit comment in revision 557716, it says it's fixing the problem of &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt;, but that bug actually is the task of running the tests against a collated database. If you propedit the revision comment, the change would show up with this bug.&lt;br/&gt;
  961. </comment>
  962. <comment author="mamtas" created="Mon, 23 Jul 2007 10:05:45 -0700 (PDT)">Changed the commit comments for the fixes that went into main and 10.3.1.3 to include the proper jira entry rather than &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt;. Thanks to Myrna for pointing it out.</comment>
  963. </comments>
  964.  
  965. <issuelinks>
  966. <issuelinktype id="10032">
  967. <name>Blocker</name>
  968. <outwardlinks description="blocks">
  969. <issuelink>
  970. <issuekey id="12369433">DERBY-2656</issuekey>
  971. </issuelink>
  972. </outwardlinks>
  973. </issuelinktype>
  974. </issuelinks>
  975. <attachments>
  976. </attachments>
  977.  
  978. <subtasks>
  979. </subtasks>
  980.  
  981. <customfields>
  982. </customfields>
  983.  
  984. </item>
  985.  
  986. <item>
  987. <title>[DERBY-2955] ERROR 42ZA2 creating table with check constraint with literal comparison</title>
  988. <link>https://issues.apache.org:443/jira/browse/DERBY-2955</link>
  989.  
  990. <description>I cannot create the following table with a collated database. &lt;br/&gt;
  991. EMPNAME should be TERRITORY_BASED collation I think, but perhaps is not initialized in time for the check constraint processing.&lt;br/&gt;
  992. &lt;br/&gt;
  993. ij&amp;gt; connect 'jdbc:derby:nordb;create=true;territory=no_NO;collation=TERRITORY_BASED';&lt;br/&gt;
  994. ij&amp;gt; CREATE TABLE STAFF9 (EMPNUM CHAR(3) NOT NULL&lt;br/&gt;
  995. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CONSTRAINT STAFF9_PK PRIMARY KEY,&lt;br/&gt;
  996. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EMPNAME CHAR(20),&lt;br/&gt;
  997. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GRADE DECIMAL(4),&lt;br/&gt;
  998. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CITY CHAR(15),&lt;br/&gt;
  999. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CONSTRAINT STAFF9_EMPNAME CHECK (EMPNAME NOT LIKE 'T%'));&lt;br/&gt;
  1000. ERROR 42ZA2: Operand of LIKE predicate with type CHAR(20) and collation UCS_BASIC is not compatable with LIKE pattern op&lt;br/&gt;
  1001. erand with type CHAR(2) and collation TERRITORY_BASED.</description>
  1002. <environment/>
  1003. <key id="12374153">DERBY-2955</key>
  1004. <summary>ERROR 42ZA2 creating table with check constraint with literal comparison</summary>
  1005. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  1006.  
  1007. <priority id="3" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
  1008. <status id="6" iconUrl="https://issues.apache.org:443/jira/images/icons/status_closed.gif">Closed</status>
  1009. <resolution id="1">Fixed</resolution>
  1010.  
  1011.  
  1012. <assignee username="mamtas">Mamta A. Satoor</assignee>
  1013.  
  1014. <reporter username="kmarsden">Kathey Marsden</reporter>
  1015.  
  1016. <created>Thu, 19 Jul 2007 07:43:37 -0700 (PDT)</created>
  1017. <updated>Fri, 20 Jul 2007 00:41:47 -0700 (PDT)</updated>
  1018.  
  1019. <version>10.4.0.0</version>
  1020.  
  1021. <fixVersion>10.3.1.4</fixVersion>
  1022. <fixVersion>10.4.0.0</fixVersion>
  1023.  
  1024. <component>SQL</component>
  1025.  
  1026. <due/>
  1027.  
  1028. <votes>0</votes>
  1029.  
  1030.  
  1031.  
  1032. <comments>
  1033. <comment author="kmarsden" created="Thu, 19 Jul 2007 07:47:22 -0700 (PDT)">This issue was discovered in the testing for &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt;. The test schema8 failed with the following exception:&lt;br/&gt;
  1034. &lt;br/&gt;
  1035. schema8(org.apache.derbyTesting.functionTests.tests.nist.NistScripts) failed:&lt;br/&gt;
  1036. junit.framework.ComparisonFailure: Output at line 115 expected:&amp;lt;0 rows inserted/updated/deleted&amp;gt; but was:&amp;lt;ERROR 42ZA2: Operand of LIKE predicate with type CHAR(20) and collation UCS_BASIC is not compatable with LIKE pattern operand with type CHAR(2) and collation TERRITORY_BASED.&amp;gt;&lt;br/&gt;
  1037. at junit.framework.Assert.assertEquals(Assert.java:81)&lt;br/&gt;
  1038. at org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon(CanonTestCase.java:100)&lt;br/&gt;
  1039. at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(ScriptTestCase.java:124)&lt;br/&gt;
  1040. at junit.framework.TestCase.runBare(TestCase.java:127)&lt;br/&gt;
  1041. at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)&lt;br/&gt;
  1042. at junit.framework.TestResult$1.protect(TestResult.java:106)&lt;br/&gt;
  1043. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1044. at junit.framework.TestResult.run(TestResult.java:109)&lt;br/&gt;
  1045. at junit.framework.TestCase.run(TestCase.java:118)&lt;br/&gt;
  1046. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1047. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1048. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1049. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1050. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1051. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1052. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1053. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1054. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1055. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1056. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1057. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1058. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1059. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1060. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1061. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1062. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1063. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1064. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1065. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1066. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1067. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1068. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1069. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1070. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1071. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1072. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1073. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1074. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1075. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1076. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1077. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1078. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1079. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1080. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1081. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1082. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1083. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1084. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1085. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1086. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1087. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1088. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1089. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1090. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1091. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1092. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1093. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1094. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1095. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1096. at TimeRunner.main(TimeRunner.java:29)</comment>
  1097. <comment author="kmarsden" created="Thu, 19 Jul 2007 07:51:16 -0700 (PDT)">Here is another error that can occur with check constraint from the temp_schema10 test.&lt;br/&gt;
  1098. ij&amp;gt; CREATE TABLE RET_CATALOG (&lt;br/&gt;
  1099. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VENDOR_ID INT,&lt;br/&gt;
  1100. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PRODUCT_ID INT,&lt;br/&gt;
  1101. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHOLESALE NUMERIC (10,2),&lt;br/&gt;
  1102. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RETAIL NUMERIC (10,2),&lt;br/&gt;
  1103. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MARKUP NUMERIC (10,2),&lt;br/&gt;
  1104. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXPORT_CODE CHAR(2),&lt;br/&gt;
  1105. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXPORT_LICNSE_DATE CHAR(20),&lt;br/&gt;
  1106. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CHECK (EXPORT_LICNSE_DATE IS NULL OR (&lt;br/&gt;
  1107. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXPORT_CODE = 'F1' OR&lt;br/&gt;
  1108. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXPORT_CODE = 'F2' OR&lt;br/&gt;
  1109. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXPORT_CODE = 'F3' )),&lt;br/&gt;
  1110. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CHECK (EXPORT_CODE &amp;lt;&amp;gt; 'F2' OR WHOLESALE &amp;gt; 10000.00),&lt;br/&gt;
  1111. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CHECK (RETAIL &amp;gt;= WHOLESALE),&lt;br/&gt;
  1112. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CHECK (RETAIL = WHOLESALE + MARKUP));&lt;br/&gt;
  1113. ERROR 42818: Comparisons between 'CHAR' and 'CHAR' are not supported.</comment>
  1114. <comment author="mamtas" created="Thu, 19 Jul 2007 23:43:31 -0700 (PDT)">Checked in a fix for this in main with revision 557886 with following commit comments&lt;br/&gt;
  1115. &lt;br/&gt;
  1116. We used to set the collation type of character string columns in the generate phase rather than the bind phase of create table. But this will cause problem with following query&lt;br/&gt;
  1117. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CREATE TABLE STAFF9 (EMPNAME CHAR(20),&lt;br/&gt;
  1118. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CONSTRAINT STAFF9_EMPNAME CHECK (EMPNAME NOT LIKE 'T%'))&lt;br/&gt;
  1119. For the query above, when run in a territory based db, we need to have the correct collation set in bind phase of create table so that when LIKE is handled in LikeEscapeOperatorNode, we have the correct collation set for EMPNAME otherwise it will throw an exception for 'T%' having collation of territory based and EMPNAME having the default collation of UCS_BASIC. The change in this commit will ensure that character string columns get their collation set early on in the bind phase so when the bind code for LIKE kicks in, we are all set with correct collation information.&lt;br/&gt;
  1120. </comment>
  1121. <comment author="mamtas" created="Fri, 20 Jul 2007 00:41:38 -0700 (PDT)">Migrated changes into 10.3 codeline as part of revision 557910</comment>
  1122. </comments>
  1123.  
  1124. <issuelinks>
  1125. <issuelinktype id="10030">
  1126. <name>Reference</name>
  1127. <inwardlinks description="is related to">
  1128. <issuelink>
  1129. <issuekey id="12369433">DERBY-2656</issuekey>
  1130. </issuelink>
  1131. </inwardlinks>
  1132. </issuelinktype>
  1133. </issuelinks>
  1134. <attachments>
  1135. </attachments>
  1136.  
  1137. <subtasks>
  1138. </subtasks>
  1139.  
  1140. <customfields>
  1141. </customfields>
  1142.  
  1143. </item>
  1144.  
  1145. <item>
  1146. <title>[DERBY-2951] BatchUpdateTest.testAssociatedParams test fails with collation with exception: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: </title>
  1147. <link>https://issues.apache.org:443/jira/browse/DERBY-2951</link>
  1148.  
  1149. <description>BatchUpdateTest.testAssociatedParams test fails with collation with exception: java.sql.SQLException: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: org.apache.derby.shared.common.sanity.AssertFailure'.&lt;br/&gt;
  1150. &lt;br/&gt;
  1151. Full trace below:&lt;br/&gt;
  1152. &lt;br/&gt;
  1153. Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: org.apache.derby.shared.common.sanity.AssertFailure'.&lt;br/&gt;
  1154. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)&lt;br/&gt;
  1155. at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)&lt;br/&gt;
  1156. at org.apache.derby.impl.jdbc.Util.javaException(Util.java:245)&lt;br/&gt;
  1157. at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:403)&lt;br/&gt;
  1158. at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:346)&lt;br/&gt;
  1159. at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1572)&lt;br/&gt;
  1160. at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:81)&lt;br/&gt;
  1161. at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1293)&lt;br/&gt;
  1162. at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1652)&lt;br/&gt;
  1163. at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(EmbedPreparedStatement.java:299)&lt;br/&gt;
  1164. at org.apache.derbyTesting.functionTests.tests.jdbcapi.BatchUpdateTest.testAssociatedParams(BatchUpdateTest.java:416)&lt;br/&gt;
  1165. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
  1166. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)&lt;br/&gt;
  1167. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
  1168. at java.lang.reflect.Method.invoke(Method.java:615)&lt;br/&gt;
  1169. at junit.framework.TestCase.runTest(TestCase.java:154)&lt;br/&gt;
  1170. at junit.framework.TestCase.runBare(TestCase.java:127)&lt;br/&gt;
  1171. at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)&lt;br/&gt;
  1172. at junit.framework.TestResult$1.protect(TestResult.java:106)&lt;br/&gt;
  1173. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1174. at junit.framework.TestResult.run(TestResult.java:109)&lt;br/&gt;
  1175. at junit.framework.TestCase.run(TestCase.java:118)&lt;br/&gt;
  1176. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1177. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1178. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1179. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1180. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1181. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1182. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1183. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1184. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1185. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1186. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1187. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1188. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1189. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1190. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1191. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1192. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1193. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1194. at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;br/&gt;
  1195. at junit.framework.TestSuite.run(TestSuite.java:203)&lt;br/&gt;
  1196. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1197. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1198. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1199. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1200. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1201. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1202. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1203. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1204. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1205. at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)&lt;br/&gt;
  1206. at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)&lt;br/&gt;
  1207. at junit.extensions.TestSetup$1.protect(TestSetup.java:19)&lt;br/&gt;
  1208. at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;br/&gt;
  1209. at junit.extensions.TestSetup.run(TestSetup.java:23)&lt;br/&gt;
  1210. at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)&lt;br/&gt;
  1211. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)&lt;br/&gt;
  1212. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)&lt;br/&gt;
  1213. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)&lt;br/&gt;
  1214. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)&lt;br/&gt;
  1215. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)&lt;br/&gt;
  1216. Caused by: org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar&lt;br/&gt;
  1217. at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)&lt;br/&gt;
  1218. at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)&lt;br/&gt;
  1219. at org.apache.derby.impl.store.access.btree.OpenBTree.isIndexableRowConsistent(OpenBTree.java:529)&lt;br/&gt;
  1220. at org.apache.derby.impl.store.access.btree.BTreeController.doIns(BTreeController.java:385)&lt;br/&gt;
  1221. at org.apache.derby.impl.store.access.btree.BTreeController.insert(BTreeController.java:1035)&lt;br/&gt;
  1222. at org.apache.derby.impl.store.access.btree.index.B2IController.insert(B2IController.java:211)&lt;br/&gt;
  1223. at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(IndexChanger.java:455)&lt;br/&gt;
  1224. at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(IndexChanger.java:398)&lt;br/&gt;
  1225. at org.apache.derby.impl.sql.execute.IndexChanger.insert(IndexChanger.java:605)&lt;br/&gt;
  1226. at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(IndexSetChanger.java:268)&lt;br/&gt;
  1227. at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(RowChangerImpl.java:453)&lt;br/&gt;
  1228. at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(InsertResultSet.java:1024)&lt;br/&gt;
  1229. at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:497)&lt;br/&gt;
  1230. at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:370)&lt;br/&gt;
  1231. at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1203)&lt;br/&gt;
  1232. ... 54 more&lt;br/&gt;
  1233. &lt;br/&gt;
  1234. </description>
  1235. <environment/>
  1236. <key id="12374109">DERBY-2951</key>
  1237. <summary>BatchUpdateTest.testAssociatedParams test fails with collation with exception: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: </summary>
  1238. <type id="1" iconUrl="https://issues.apache.org:443/jira/images/icons/bug.gif">Bug</type>
  1239.  
  1240. <priority id="3" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
  1241. <status id="6" iconUrl="https://issues.apache.org:443/jira/images/icons/status_closed.gif">Closed</status>
  1242. <resolution id="1">Fixed</resolution>
  1243.  
  1244.  
  1245. <assignee username="mamtas">Mamta A. Satoor</assignee>
  1246.  
  1247. <reporter username="kmarsden">Kathey Marsden</reporter>
  1248.  
  1249. <created>Wed, 18 Jul 2007 14:46:49 -0700 (PDT)</created>
  1250. <updated>Thu, 26 Jul 2007 09:35:13 -0700 (PDT)</updated>
  1251.  
  1252. <version>10.4.0.0</version>
  1253.  
  1254. <fixVersion>10.3.1.4</fixVersion>
  1255. <fixVersion>10.4.0.0</fixVersion>
  1256.  
  1257. <component>SQL</component>
  1258.  
  1259. <due/>
  1260.  
  1261. <votes>0</votes>
  1262.  
  1263.  
  1264.  
  1265. <comments>
  1266. <comment author="mamtas" created="Thu, 19 Jul 2007 10:13:00 -0700 (PDT)">Commited a fix for this in main using revision 557693. The commit comments were as follows&lt;br/&gt;
  1267. &lt;br/&gt;
  1268. This commit has 2 simple fixes (&lt;a href="https://issues.apache.org/jira/browse/DERBY-2951" title="BatchUpdateTest.testAssociatedParams test fails with collation with exception: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: "&gt;&lt;strike&gt;DERBY-2951&lt;/strike&gt;&lt;/a&gt; which gives assert failure and &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt; The table will have collation type UCS_BASIC which is different than the collation of the schema TERRITORY_BASED hence this operation is not supported.)&lt;br/&gt;
  1269. &lt;br/&gt;
  1270. The failure in &lt;a href="https://issues.apache.org/jira/browse/DERBY-2951" title="BatchUpdateTest.testAssociatedParams test fails with collation with exception: Java exception: 'ASSERT FAILED type of inserted column[0] = org.apache.derby.iapi.types.CollatorSQLChartype of template column[0] = org.apache.derby.iapi.types.SQLChar: "&gt;&lt;strike&gt;DERBY-2951&lt;/strike&gt;&lt;/a&gt; is because in store, we were not using correct format id and hence collation information was not getting written out and read from disk. Added a test case for this in CollationTest.&lt;br/&gt;
  1271. &lt;br/&gt;
  1272. The failure in &lt;a href="https://issues.apache.org/jira/browse/DERBY-2656" title="Run suites.All against a collated database"&gt;&lt;strike&gt;DERBY-2656&lt;/strike&gt;&lt;/a&gt; was because of the bug that we were comparing collation type for non-character types. Collation is only applicable to character types and hence we should check for character types before comparing the collation info. Added a test case for this one too.</comment>
  1273. <comment author="mamtas" created="Thu, 19 Jul 2007 11:16:08 -0700 (PDT)">Merged change into 10.3 codeline using revision 557716 </comment>
  1274. <comment author="kmarsden" created="Thu, 26 Jul 2007 09:35:13 -0700 (PDT)">verified fix</comment>
  1275. </comments>
  1276.  
  1277. <issuelinks>
  1278. <issuelinktype id="10030">
  1279. <name>Reference</name>
  1280. <inwardlinks description="is related to">
  1281. <issuelink>
  1282. <issuekey id="12369433">DERBY-2656</issuekey>
  1283. </issuelink>
  1284. </inwardlinks>
  1285. </issuelinktype>
  1286. </issuelinks>
  1287. <attachments>
  1288. </attachments>
  1289.  
  1290. <subtasks>
  1291. </subtasks>
  1292.  
  1293. <customfields>
  1294. </customfields>
  1295.  
  1296. </item>
  1297.  
  1298. <item>
  1299. <title>[DERBY-2941] With 10.2, Closing a resultset after retrieving a large &gt; 32665 bytes value with Network Server does not release locks</title>
  1300. <link>https://issues.apache.org:443/jira/browse/DERBY-2941</link>
  1301.  
  1302. <description>Making a subtask for the 10.2 fix for this issue as the fix for 10.3 will be different.&lt;br/&gt;
  1303. &lt;br/&gt;
  1304. </description>
  1305. <environment/>
  1306. <key id="12373904">DERBY-2941</key>
  1307. <summary>With 10.2, Closing a resultset after retrieving a large &gt; 32665 bytes value with Network Server does not release locks</summary>
  1308. <type id="7" iconUrl="https://issues.apache.org:443/jira/images/icons/issue_subtask.gif">Sub-task</type>
  1309. <parent id="12372921">DERBY-2892</parent>
  1310.  
  1311. <priority id="3" iconUrl="https://issues.apache.org:443/jira/images/icons/priority_major.gif">Major</priority>
  1312. <status id="5" iconUrl="https://issues.apache.org:443/jira/images/icons/status_resolved.gif">Resolved</status>
  1313. <resolution id="1">Fixed</resolution>
  1314.  
  1315.  
  1316. <assignee username="kmarsden">Kathey Marsden</assignee>
  1317.  
  1318. <reporter username="kmarsden">Kathey Marsden</reporter>
  1319.  
  1320. <created>Mon, 16 Jul 2007 08:21:19 -0700 (PDT)</created>
  1321. <updated>Wed, 18 Jul 2007 16:30:25 -0700 (PDT)</updated>
  1322.  
  1323. <version>10.2.2.0</version>
  1324.  
  1325. <fixVersion>10.2.2.1</fixVersion>
  1326. <fixVersion>10.3.1.4</fixVersion>
  1327. <fixVersion>10.4.0.0</fixVersion>
  1328.  
  1329. <component>Network Server</component>
  1330.  
  1331. <due/>
  1332.  
  1333. <votes>0</votes>
  1334.  
  1335.  
  1336.  
  1337. <comments>
  1338. <comment author="kmarsden" created="Mon, 16 Jul 2007 08:27:56 -0700 (PDT)">Attaching a patch for this issue. Patch only differs from patch attached to &lt;a href="https://issues.apache.org/jira/browse/DERBY-2892" title="Closing a resultset after retrieving a large &amp;gt; 32665 bytes value with Network Server does not release locks"&gt;DERBY-2892&lt;/a&gt; in that it has some corrections to javadoc.&lt;br/&gt;
  1339. &lt;br/&gt;
  1340. -Changes EXTDTAInputStream to use ResultSet.getCharacterStream, ResultSet.getBinaryStream instead of getClob(), getBlob..&lt;br/&gt;
  1341. &lt;br/&gt;
  1342. - Alters EngineResult for getLenth(int columnIndex) and isNull(int columnIndex) methods&lt;br/&gt;
  1343. &lt;br/&gt;
  1344. -Enables LargeDataLocksTest&lt;br/&gt;
  1345. &lt;br/&gt;
  1346. derbyall passed with only known failures.&lt;br/&gt;
  1347. &lt;br/&gt;
  1348. I would most appreciate review. If I hear no objections I will commit tomorrow.&lt;br/&gt;
  1349. &lt;br/&gt;
  1350. </comment>
  1351. <comment author="oysteing" created="Tue, 17 Jul 2007 05:23:24 -0700 (PDT)">I have looked at the patch, and I think the patch looks very good.&lt;br/&gt;
  1352. I only have some minor comments/questions:&lt;br/&gt;
  1353. &lt;br/&gt;
  1354. - Did you intend to leave the changes to DDMWriter in there?&lt;br/&gt;
  1355. &lt;br/&gt;
  1356. - You have added a comment that says &amp;quot;Stream is initialized on the&lt;br/&gt;
  1357. &amp;nbsp;&amp;nbsp;&amp;nbsp;first read&amp;quot;. It is not quite clear to me what stream you are&lt;br/&gt;
  1358. &amp;nbsp;&amp;nbsp;&amp;nbsp;referring to. It looks to me that the caller has to initialize the&lt;br/&gt;
  1359. &amp;nbsp;&amp;nbsp;&amp;nbsp;stream (call initInputStream) BEFORE it is to be read.&lt;br/&gt;
  1360. &lt;br/&gt;
  1361. - There seem to be some indentation differences in the&lt;br/&gt;
  1362. &amp;nbsp;&amp;nbsp;&amp;nbsp;EXTDTAInputStream constructor.&lt;br/&gt;
  1363. &lt;br/&gt;
  1364. - I do not understand the javadoc for EXTDTAInputStream.isNUll. What&lt;br/&gt;
  1365. &amp;nbsp;&amp;nbsp;&amp;nbsp;do you mean by &amp;quot;determined in the constructor&amp;quot;? It seems like the&lt;br/&gt;
  1366. &amp;nbsp;&amp;nbsp;&amp;nbsp;only thing the constructor does is to register the parameter&lt;br/&gt;
  1367. &amp;nbsp;&amp;nbsp;&amp;nbsp;values.&lt;br/&gt;
  1368. &amp;nbsp;&amp;nbsp;&lt;br/&gt;
  1369. +1 to commit, but would prefer that the comments discussed about is made clearer.</comment>
  1370. <comment author="naka" created="Tue, 17 Jul 2007 05:52:02 -0700 (PDT)">I remember that I had trouble to retrieve length of stored data in &lt;a href="https://issues.apache.org/jira/browse/DERBY-326" title="Improve streaming of large objects for network server and client"&gt;DERBY-326&lt;/a&gt;.&lt;br/&gt;
  1371. &lt;a href="http://mail-archives.apache.org/mod_mbox/db-derby-dev/200512.mbox/%3C43A975F5.3090904@basil.ocn.ne.jp%3E"&gt;http://mail-archives.apache.org/mod_mbox/db-derby-dev/200512.mbox/%3C43A975F5.3090904@basil.ocn.ne.jp%3E&lt;/a&gt;&lt;br/&gt;
  1372. &lt;br/&gt;
  1373. At that point, it seems that length information might be missing in some cases....&lt;br/&gt;
  1374. &lt;br/&gt;
  1375. My understanding is that the engine was improved and &lt;br/&gt;
  1376. it became always possible to retrieve length of stored data via DataValueDescriptor#getLength().</comment>
  1377. <comment author="kmarsden" created="Tue, 17 Jul 2007 12:26:17 -0700 (PDT)">Fixed in 10.2 and ported to trunk and 10.3 and verified with 10.2 client. &lt;a href="https://issues.apache.org/jira/browse/DERBY-2892" title="Closing a resultset after retrieving a large &amp;gt; 32665 bytes value with Network Server does not release locks"&gt;DERBY-2892&lt;/a&gt; still needs to be fixed for server working with 10.3+ client&lt;br/&gt;
  1378. &lt;br/&gt;
  1379. Kathey&lt;br/&gt;
  1380. </comment>
  1381. <comment author="myrna" created="Wed, 18 Jul 2007 16:15:10 -0700 (PDT)">I know you checked in the test to 10.3 branch, but I'm doubting that this issue should be marked fixed for 10.3.1.2?&lt;br/&gt;
  1382. </comment>
  1383. <comment author="kmarsden" created="Wed, 18 Jul 2007 16:30:25 -0700 (PDT)">I checked the fix into the 10.3 branch as well, so hopefully the fix version is ok. It only fixes 10.2 client with 10.3. It does not fix 2892 10.3 client with 10.3.&lt;br/&gt;
  1384. &lt;br/&gt;
  1385. </comment>
  1386. </comments>
  1387.  
  1388. <attachments>
  1389. <attachment id="12361897" name="DERBY-2941_diff.txt" size="14221" author="kmarsden" created="Mon, 16 Jul 2007 08:27:56 -0700 (PDT)"/>
  1390. </attachments>
  1391.  
  1392. <subtasks>
  1393. </subtasks>
  1394.  
  1395. <customfields>
  1396. <customfield id="customfield_12310050" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
  1397. <customfieldname>Urgency</customfieldname>
  1398. <customfieldvalues>
  1399. <customfieldvalue><![CDATA[Urgent]]></customfieldvalue>
  1400.  
  1401. </customfieldvalues>
  1402. </customfield>
  1403. </customfields>
  1404.  
  1405. </item>
  1406.  
  1407.  
  1408. </channel>
  1409. </rss>
  1410.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement