db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunitha Kambhampati (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1660) SYSCS_BULK_INSERT fails with syntax error at PROPERTIES clause.
Date Thu, 10 Aug 2006 23:32:14 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1660?page=all ]

Sunitha Kambhampati updated DERBY-1660:
---------------------------------------

    Attachment: bulkinsert.test.diff.txt
                bulkinsert.test.stat.txt

The fix for this issue has already been committed (Thanks Mike). I am attaching a patch bulkinsert.test.diff.txt
to add a regression test .

This patch 
-- adds two new classes WarehouseVTI and TableVTI.
-- adds a new test case to test SYSCS_BULK_INSERT. This testcase  is added to the existing
optimizerOverrides.sql.
-- updates master files for embedded  and network server. 

Ran this test on windows/jdk142 with embedded, derbynet and derbynetclient frameworks and
test passes OK.

Can someone please review /commit this test only patch. 

Thanks. 



> SYSCS_BULK_INSERT fails with syntax error at PROPERTIES clause.
> ---------------------------------------------------------------
>
>                 Key: DERBY-1660
>                 URL: http://issues.apache.org/jira/browse/DERBY-1660
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.2.0.0
>            Reporter: Sunitha Kambhampati
>         Assigned To: Sunitha Kambhampati
>            Priority: Minor
>             Fix For: 10.2.0.0
>
>         Attachments: bulkinsert.diff.txt, bulkinsert.test.diff.txt, bulkinsert.test.stat.txt
>
>
> Calling procedure SYSCS_BULK_INSERT  fails in 10.2 , throwing a syntax error when it
sees the PROPERTIES clause.
> SystemProcedures.SYSCS_BULK_INSERT uses the following sql query.
>        String binsertSql =
>            "insert into " + entityName +
>            " PROPERTIES insertMode=bulkInsert " +
>            "select * from new " + vtiName +
>            "(" +
>            "'" + schemaName + "'" + ", " +
>            "'" + tableName + "'" +  ", " +
>            "'" + vtiArg + "'" +  ")" +
>            " as t";
> I think because of the optimizer overrides in 10.2, this query does not work. 
> Instead of the PROPERTIES clause, we should now use --DERBY-PROPERTIES.  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message