Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45BE511223 for ; Thu, 11 Sep 2014 17:44:35 +0000 (UTC) Received: (qmail 7356 invoked by uid 500); 11 Sep 2014 17:44:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 7254 invoked by uid 500); 11 Sep 2014 17:44:34 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 7241 invoked by uid 99); 11 Sep 2014 17:44:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 17:44:34 +0000 Date: Thu, 11 Sep 2014 17:44:34 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (DBUTILS-120) Add loading from SQL file to QueryLoader MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DBUTILS-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14130364#comment-14130364 ] Sebb edited comment on DBUTILS-120 at 9/11/14 5:43 PM: ------------------------------------------------------- With the original format, a comment of the form "\-xxxxxx:" would match; only the leading "\-" and trailing ":" distinguish it. With the suggested format, there has to be a leading string of " Query:", which is less likely to match accidentally Personally I think Gary's format also looks nicer. It's also potentially extendable, in case something other than a Query needs to be provided via comments. was (Author: sebb@apache.org): With the original format, a comment of the form "-xxxxxx:" would match; only the leading "-" and trailing ":" distinguish it. With the suggested format, there has to be a leading string of " Query:", which is less likely to match accidentally Personally I think Gary's format also looks nicer. It's also potentially extendable, in case something other than a Query needs to be provided via comments. > Add loading from SQL file to QueryLoader > ---------------------------------------- > > Key: DBUTILS-120 > URL: https://issues.apache.org/jira/browse/DBUTILS-120 > Project: Commons DbUtils > Issue Type: Improvement > Reporter: Aleksei Kovura > Labels: patch > Attachments: dbutilsQueryLoader.diff > > > I propose sql file in the following format: > ---queryName1: > SELECT * FROM "APP"."TABLE1"; > ---queryName2: > SELECT column1, column2 FROM "APP"."TABLE2" WHERE column1=?; -- This message was sent by Atlassian JIRA (v6.3.4#6332)