You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@empire-db.apache.org by "Rainer Döbele (JIRA)" <em...@incubator.apache.org> on 2019/01/20 19:32:00 UTC

[jira] [Created] (EMPIREDB-285) When dropping tables with sequences, the sequence name is not escaped correctly.

Rainer Döbele created EMPIREDB-285:
--------------------------------------

             Summary: When dropping tables with sequences, the sequence name is not escaped correctly.
                 Key: EMPIREDB-285
                 URL: https://issues.apache.org/jira/browse/EMPIREDB-285
             Project: Empire-DB
          Issue Type: Bug
          Components: Core
            Reporter: Rainer Döbele
            Assignee: Rainer Döbele


Samir Hadzic reported the following bug:

 I'm currently migrating my Empire-db from 2.1.0 (2011) to the latest.

 If I'm not mistaken, the code added is not right for HSqlDDLGenerator.

 

If I'm trying to drop a table, the generated code will be :

{code:java}

 DROP SEQUENCE FOO_SEQUENCE.MSG_ID;\{code} But executing that on HSQL is not working. Instead it's expecting:

{code:java}

 DROP SEQUENCE "FOO_SEQUENCE.MSG_ID";\{code} Therefore, I'm wondering if a call to *appendElementName* should be used instead of directly appending the sequence name since I believe the *appendElementName* method is taking care of the quotes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)