Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 89487 invoked from network); 4 Dec 2006 08:09:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 08:09:23 -0000 Received: (qmail 70705 invoked by uid 500); 4 Dec 2006 08:09:30 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 70678 invoked by uid 500); 4 Dec 2006 08:09:30 -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 70667 invoked by uid 99); 4 Dec 2006 08:09:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 00:09:30 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [213.215.190.82] (HELO silmasoftware.com) (213.215.190.82) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 00:09:18 -0800 Received: from PALUMBOXP by silmasoftware.com (MDaemon.Standard.v8.1.3.R) with ESMTP id md50000283190.msg for ; Mon, 04 Dec 2006 09:03:17 +0100 From: "Flavio Palumbo" To: "Derby Discussion" Subject: R: R: R: Use SQL parsing Date: Mon, 4 Dec 2006 09:08:01 +0100 Message-ID: <000301c7177b$5189cc70$5200000a@PALUMBOXP> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <45704D0E.9030102@apache.org> Importance: Normal x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Authenticated-Sender: f.palumbo@silmasoftware.com X-MDRemoteIP: 10.0.0.82 X-Return-Path: f.palumbo@silmasoftware.com X-MDaemon-Deliver-To: derby-user@db.apache.org X-Virus-Checked: Checked by ClamAV on apache.org Hi Dan, I think you've well summarized what's my aim ;-)) and also that your proposal of solution seems very handy. I'll stay "tuned" to try to test this new release as soon as it will be available. Thanks a lot Flavio > -----Messaggio originale----- > Da: Daniel John Debrunner [mailto:djd@apache.org] > Inviato: venerd� 1 dicembre 2006 16.41 > A: Derby Discussion > Oggetto: Re: R: R: Use SQL parsing > > > Flavio Palumbo wrote: > > Well, I made a little tool where a user can submit free SQL > statements ... > > I'd like to parse it before submitting to trap sintax errors. > > So I assume you are looking to make sure that well-formed SQL statements > are created before the statement is sent to the real database. I guess > that a statement such as: > > SELECT A,B FROM T > > needs to be seen as valid, even if T does not exist, or A, B are not > valid columns in T. > > Derby does not support that yet, but it's possible to add that type of > functionality. I could imagine something like a database type of > 'syntax' that would only provide syntax checking on a prepare, e.g. a > JDBC URL of > > jdbc:derby:syntax: > > There would be no store behind this "database", just the SQL layer of > Derby. In the past I've run Derby like this to show how the layers are > independent of each other, i.e. a storeless Derby that could perform any > SQL query that did not go against a real database object (e..g VALUES 1). > > I've been messing with the some code in this area now (and in the past) > so I'll look into making progress on this for the next major release of > Derby. > > Dan. > ----------------------------------------------------------- Il presente messaggio non costituisce un impegno contrattuale tra SILMA S.r.l. ed il destinatario. Le opinioni ivi espresse sono quelle dell'autore. SILMA S.r.l. non assume alcuna responsabilita riguardo al contenuto del presente messaggio. Il messaggio � destinato esclusivamente al destinatario. Il contenuto e gli allegati sono da considerarsi di natura confidenziale Nel caso abbiate ricevuto il presente messaggio per errore siete pregati di comunicarlo alla casella segreteria@silmasoftware.com.