[ 
https://issues.apache.org/jira/browse/DERBY-5583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bob Power updated DERBY-5583:
-----------------------------

    Description: 
create table temp as
select
cid
from
tcopy;

gives ;
Error code -1, SQL state 42X01: Syntax error: Encountered "<EOF>" at line 5, 
column 5.

running the select statement alone is fine ; 

select
cid
from
tcopy;


returns the data with no errors

  was:
create table temp as 
select
c.cid copyId,
m.cid memberId,
p.cid productId
from
tcopy c,
tmember m,
tproduct p
where
m.cid = c.cmemberid
and
p.cid = c.cproductid ;

gives ;
Error code -1, SQL state 42X01: Syntax error: Encountered "<EOF>" at line 13, 
column 20.

running the select statement alone is fine ; 
select
c.cid copyId,
m.cid memberId,
p.cid productId
from
tcopy c,
tmember m,
tproduct p
where
m.cid = c.cmemberid
and
p.cid = c.cproductid ;

returns the data with no errors

    
> CTAS fails and returns erroneous error
> --------------------------------------
>
>                 Key: DERBY-5583
>                 URL: https://issues.apache.org/jira/browse/DERBY-5583
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.8.2.2
>         Environment: Windows XP, Netbeans 6.9.1, Was experiencing error with 
> Derby 10.3.2.1 so upgraded to 10.8.2.2 ( latest ) and getting same error. ( 
> Given description seems unlikely to be netbeans issue )
>            Reporter: Bob Power
>
> create table temp as
> select
> cid
> from
> tcopy;
> gives ;
> Error code -1, SQL state 42X01: Syntax error: Encountered "<EOF>" at line 5, 
> column 5.
> running the select statement alone is fine ; 
> select
> cid
> from
> tcopy;
> returns the data with no errors

--
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

        

Reply via email to