Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1CD0510273 for ; Sat, 19 Apr 2014 15:19:04 +0000 (UTC) Received: (qmail 56433 invoked by uid 500); 19 Apr 2014 15:19:03 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 56382 invoked by uid 500); 19 Apr 2014 15:19:03 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 56375 invoked by uid 99); 19 Apr 2014 15:19:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Apr 2014 15:19:03 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of meyerjp3@gmail.com designates 209.85.213.47 as permitted sender) Received: from [209.85.213.47] (HELO mail-yh0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Apr 2014 15:18:57 +0000 Received: by mail-yh0-f47.google.com with SMTP id 29so2282857yhl.6 for ; Sat, 19 Apr 2014 08:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZkD4pAFMN2TbOgS/xateBolgTfmL3f7d8ldmEv2tOcI=; b=dKO3BKlzWrLVQi63B7z9CgzY3KwRNHyHRiJ8Bf945FZucP6SquhcEANwz7fwBhy9E+ Oj3c7IV6Uw9xO5RCWx5C/kVTEwP8SnW2xHfuxy86HYrMHyhYizuz/UqAmENQy+xB8BXN 535YAa5C9N4DZp/DtyE0vmFB1SmhjYPFUzlO/vXmrUcpcetUyOglP4EDNhYONIsstAIY bAT/H9pAsRSoBz+TaVfL1JLw9bxBiMxYE8SI6YU7+21HIIUSmQWD8Ue7urRIr5z5rp1Q oFkuGGE26y44BvrSi7jnA65lb8oExgiru5WUPT3ASUlB0esGrpuXTvJttsSLbNxrMd5M 6mjg== MIME-Version: 1.0 X-Received: by 10.236.116.131 with SMTP id g3mr2255184yhh.110.1397920717163; Sat, 19 Apr 2014 08:18:37 -0700 (PDT) Received: by 10.170.203.139 with HTTP; Sat, 19 Apr 2014 08:18:37 -0700 (PDT) Received: by 10.170.203.139 with HTTP; Sat, 19 Apr 2014 08:18:37 -0700 (PDT) In-Reply-To: <53528DE4.5010705@gmail.com> References: <002101cf5b6f$904bd4e0$b0e37ea0$@gmail.com> <53528DE4.5010705@gmail.com> Date: Sat, 19 Apr 2014 11:18:37 -0400 Message-ID: Subject: Re: CREATE TABLE lexical error From: Patrick Meyer To: Derby Discussion Content-Type: multipart/alternative; boundary=20cf303e9f3cc552d504f766c7e1 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303e9f3cc552d504f766c7e1 Content-Type: text/plain; charset=UTF-8 Thanks John. Yes, I was cutting and pasting from Notepad, but I was doing that for all four lines. I don't understand why it worked for some lines but not others. Nevertheless, the cutting and pasting is not my real problem. I created these four statements to reproduce a problem I encountered with my program. I get the same lexical error when my program obtains the column names from a delimited text file. This error only occurs with some (actually, very few) files and I cannot figure out why. Any ideas why? Thanks On Apr 19, 2014 10:53 AM, "John English" wrote: > On 19/04/2014 04:34, Patrick Meyer wrote: > >> I have an application that allows users to import data into Derby. As >> such, the >> users specify the column names. A user encountered a lexical error >> message that >> I have been able to reproduce with the following CREATE TABLE statements. >> Can >> anyone explain why the column names appear to be causing a lexical error >> and how >> to avoid it? I am using 10.9.1. >> > > \uFEFF is a Unicode "zero-width line break" character. Presumably you're > cutting and pasting from somewhere; try pasting into a plain-text editor > and then cut & paste from there to get rid of it? > > HTH, > -- > John English > --20cf303e9f3cc552d504f766c7e1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thanks John. Yes, I was cutting and pasting from Notepad, bu= t I was doing that for all four lines. I don't understand why it worked= for some lines but not others.

Nevertheless,=C2=A0 the cutting and pasting is not my real p= roblem. I created these four statements to reproduce a problem I encountere= d with my program. I get the same lexical error when my program obtains the= column names from a delimited text file. This error only occurs with some = (actually, very few) files and I cannot figure out why. Any ideas why?

Thanks

On Apr 19, 2014 10:53 AM, "John English&quo= t; <john.foreign@gmail.com= > wrote:
On 19/04/2014 04:34, Patrick Meyer wrote:
I have an application that allows users to import data into Derby. As such,= the
users specify the column names. A user encountered a lexical error message = that
I have been able to reproduce with the following CREATE TABLE statements. C= an
anyone explain why the column names appear to be causing a lexical error an= d how
to avoid it? I am using 10.9.1.

\uFEFF is a Unicode "zero-width line break" character. Presumably= you're cutting and pasting from somewhere; try pasting into a plain-te= xt editor and then cut & paste from there to get rid of it?

HTH,
--
John English
--20cf303e9f3cc552d504f766c7e1--