[JBoss JIRA] Created: (TEIIDDES-729) Teiid designer generates SQL*Plus specific statements
by Boris Belovic (JIRA)
Teiid designer generates SQL*Plus specific statements
-----------------------------------------------------
Key: TEIIDDES-729
URL: https://jira.jboss.org/browse/TEIIDDES-729
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Reporter: Boris Belovic
When generating DDL files for Oracle database, Teiid designer adds Oracle SQL*Plus specific statements into this DDL file. From discussion on #metamatrix channel turned out that these statements are specific to SQL*Plus tooling. With other tools (for example Ant's sql task) these commands cause failures and the DDL file doesn't execute correctly.
For example following file:
CREATE TABLE MVCloneMaterializedTable
(
name VARCHAR2(255),
surname VARCHAR2(255),
label VARCHAR2(255)
);
SET DEFINE OFF
SET DEFINE ON
-- Uncomment the following line for use of the logging facility
--spool off
commit;
when executed through Ant's sql task will fail with this error:
Failed to execute: SET DEFINE OFF SET DEFINE ON commit
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] Created: (TEIIDDES-712) Text metadata - transformation SQL editor fails to parse text with reserved word enclosed in quotation marks - no escape mechanism
by Paul Nittel (JIRA)
Text metadata - transformation SQL editor fails to parse text with reserved word enclosed in quotation marks - no escape mechanism
----------------------------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-712
URL: https://jira.jboss.org/browse/TEIIDDES-712
Project: Teiid Designer
Issue Type: Bug
Components: Transformations
Affects Versions: 7.1.1
Environment: JBDS 4.0.0 Beat 1, Fedora 12
Reporter: Paul Nittel
Fix For: 7.1.1
I'm executing the TPCR Text metadata test and ran into the word "value" which is being used as a column name. Since it's reserved, it needs to be enclosed in quotes. Now, as part of a text metadata import, it's already a quoted string, so I need to somehow escape the quotation marks around value.
\" and "" both failed to work. The metadata text is:
Q11, "SELECT PS_PARTKEY, SUM((PS_SUPPLYCOST * PS_AVAILQTY)) AS value FROM TPCR.PARTSUPP, TPCR.SUPPLIER, TPCR.NATION WHERE (PS_SUPPKEY = S_SUPPKEY) AND (S_NATIONKEY = N_NATIONKEY) AND (N_NAME = 'GERMANY') GROUP BY PS_PARTKEY HAVING SUM((PS_SUPPLYCOST * PS_AVAILQTY)) > (SELECT (SUM((PS_SUPPLYCOST * PS_AVAILQTY)) * 1.0E-4) FROM TPCR.PARTSUPP, TPCR.SUPPLIER, TPCR.NATION WHERE (PS_SUPPKEY = S_SUPPKEY) AND (S_NATIONKEY = N_NATIONKEY) AND (N_NAME = 'GERMANY'))", "TPCR Query 11"
The importer and/or parser should take into account the need to escape quotes.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months