Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11861 invoked from network); 20 Jul 2007 07:02:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 07:02:22 -0000 Received: (qmail 38765 invoked by uid 500); 20 Jul 2007 07:01:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 38736 invoked by uid 500); 20 Jul 2007 07:01:50 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 38727 invoked by uid 99); 20 Jul 2007 07:01:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 00:01:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 00:01:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4D5664297CE for ; Fri, 20 Jul 2007 00:01:26 -0700 (PDT) Message-ID: <8473546.1184914886312.JavaMail.jira@brutus> Date: Fri, 20 Jul 2007 00:01:26 -0700 (PDT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Reopened: (DERBY-2952) create table from values clause causes error: ERROR 42ZA3: The table will have collation type UCS_BASIC which is different than the collation of the schema TERRITORY_BASED In-Reply-To: <23183280.1184798345161.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor reopened DERBY-2952: ------------------------------------ > create table from values clause causes error: ERROR 42ZA3: The table will have collation type UCS_BASIC which is different than the collation of the schema TERRITORY_BASED > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2952 > URL: https://issues.apache.org/jira/browse/DERBY-2952 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.0.0 > Reporter: Kathey Marsden > Assignee: Mamta A. Satoor > Fix For: 10.4.0.0 > > > To reproduce: > ij> connect 'jdbc:derby:nordb;territory=no_NO;collation=TERRITORY_BASED;create=true'; > ij> create table t3 (x,y) as values (1,'name') with no data; > ERROR 42ZA3: 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 . > java.sql.SQLException: 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 . > at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:202) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:391) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:346) > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1572) > at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:81) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:585) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:528) > at org.apache.derby.impl.tools.ij.ij.executeImmediate(ij.java:330) > at org.apache.derby.impl.tools.ij.utilMain.doCatch(utilMain.java:522) > at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:364) > at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:262) > at org.apache.derby.impl.tools.ij.Main.go(Main.java:215) > at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:181) > at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:56) > at org.apache.derby.tools.ij.main(ij.java:71) > Caused by: ERROR 42ZA3: 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 . > at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:301) > at org.apache.derby.impl.sql.compile.CreateTableNode.bindStatement(CreateTableNode.java:340) > at org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java:314) > at org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java:88) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConne > ctionContext.java:753) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:579) > ... 9 more > This can also be seen in the test CreateTableFromQueryTest.testCreateTableFromValues -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.