Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0751C731 for ; Fri, 8 Jun 2012 03:17:35 +0000 (UTC) Received: (qmail 40399 invoked by uid 500); 8 Jun 2012 03:17:35 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 40273 invoked by uid 500); 8 Jun 2012 03:17:34 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 39213 invoked by uid 99); 8 Jun 2012 03:17:24 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 03:17:24 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 653AD142861 for ; Fri, 8 Jun 2012 03:17:23 +0000 (UTC) Date: Fri, 8 Jun 2012 03:17:23 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <1415168127.51280.1339125443416.JavaMail.jiratomcat@issues-vm> In-Reply-To: <718425191.60316.1336968357592.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Comment Edited] (TORQUE-203) Quote table names in creation 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/TORQUE-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291525#comment-13291525 ] Thomas Fox edited comment on TORQUE-203 at 6/8/12 3:16 AM: ----------------------------------------------------------- All databases we support in 4.0 support quoting. But as always, different database vendors implement things different. E.g. MySQL: create table `book` (id integer not null); select * from `book`; ->OK select * from book; ->OK Oracle: create table "book" (id number not null); select * from "book"; ->OK select * from book; -> Table not found So quoting is not a solution IMHO. As a user I'd not accept defining a table book and then find the table name to be "book" (with double quotes, as in Oracle). was (Author: tfischer): All databases we support in 4.0 support quoting. But as always, different database vendors implement things different. E.g. MySQL: create table `book` (id integer not null); select * from `book`; ->OK select * fron book; ->OK Oracle: create table "book" (id number not null); select * from "book"; ->OK select * from book; -> Table not found So quoting is not a solution IMHO. As a user I'd not accept defining a table book and then find the table name to be "book" (with double quotes, as in Oracle). > Quote table names in creation > ----------------------------- > > Key: TORQUE-203 > URL: https://issues.apache.org/jira/browse/TORQUE-203 > Project: Torque > Issue Type: Improvement > Reporter: Thomas Fox > > For some databases, table names can be quoted in the sql create scripts to avoid collisions with predefined names. Where possible, such quotation should be used. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org