[
https://issues.apache.org/jira/browse/EMPIREDB-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rainer Döbele updated EMPIREDB-285:
-----------------------------------
Description:
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.
was:
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.
> 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
> Priority: Major
>
> 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)