Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 41867 invoked from network); 23 Jan 2007 12:42:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 12:42:11 -0000 Received: (qmail 62389 invoked by uid 500); 23 Jan 2007 12:42:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 62178 invoked by uid 500); 23 Jan 2007 12:42:16 -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 62169 invoked by uid 99); 23 Jan 2007 12:42:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 04:42:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Tue, 23 Jan 2007 04:42:09 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9A6087142D1 for ; Tue, 23 Jan 2007 04:41:49 -0800 (PST) Message-ID: <20495105.1169556109627.JavaMail.jira@brutus> Date: Tue, 23 Jan 2007 04:41:49 -0800 (PST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2103) After a Lexical Error due to syntax error , even a simple create table does not work on the same connection. In-Reply-To: <20538891.1164067441929.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-2103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466730 ] Kristian Waagan commented on DERBY-2103: ---------------------------------------- New revision of the patch looks good. I will commit this after my test-run has completed. > After a Lexical Error due to syntax error , even a simple create table does not work on the same connection. > ---------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2103 > URL: https://issues.apache.org/jira/browse/DERBY-2103 > Project: Derby > Issue Type: Bug > Affects Versions: 10.3.0.0 > Reporter: Suresh Thalamati > Assigned To: Mayuresh Nirhali > Priority: Minor > Fix For: 10.2.3.0, 10.3.0.0 > > Attachments: derby2103.diff, derby2103_v2.diff, Derby2103_v3.diff > > > connect 'jdbc:derby:wombat;create=true'; > create table t1(a int ) ; > create table "t2"(a int ) ; > -- this should fail. > create table foo (a int , \"YEAR\" int ) ; > -- but this should not fail. But failing > create table t4 ( b int ) ; > FYI: > $ java org.apache.derby.tools.ij > ij version 10.3 > ij> run 'weird1.sql'; > ij> connect 'jdbc:derby:wombat;create=true'; > ij> create table t1(a int ) ; > 0 rows inserted/updated/deleted > ij> create table "t2"(a int ) ; > 0 rows inserted/updated/deleted > ij> -- this should fail. > create table foo (a int , \"YEAR\" int ) ; > ERROR 42X02: Lexical error at line 2, column 28. Encountered: "\\" (92), after > : "". > ij> -- but this should not fail. But failing > create table t4 ( b int ) ; > ERROR 42X01: Syntax error: Encountered "" at line 2, column 21. > ij> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.