Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333621

Summary: show and describe failed to execute in SQL Editor
Product: [Tools] Data Tools Reporter: Bruce Wen <wengm>
Component: SQL Editor FrameworkAssignee: dtp.sqldevtools-inbox <dtp.sqldevtools-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: bpayton
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
show command failed to execute from SQL Editor none

Description Bruce Wen CLA 2011-01-06 00:12:12 EST
Build Identifier: I20080617-2000

show and describe commands failed to execute from SQL Editor. The following message displayed:
Encountered "show" at line 1, column 1

Reproducible: Always

Steps to Reproduce:
1. connect to derby database in Data Source Explorer
2. create a sql file: Type - Derby_10.x; Name - connection name; database - derby database name
3. type SQL statement "show schemas;" or "describe ${TableName}"
4. high-light the statement and right click -> execute selected text

Expected Result:
The SQL statement executed successfully

Actual Result:
Failed and error message says: Encountered "show" at line 1, column 1
Comment 1 Bruce Wen CLA 2011-01-06 00:17:27 EST
Created attachment 186143 [details]
show command failed to execute from SQL Editor
Comment 2 Brian Payton CLA 2011-01-06 15:47:08 EST
"show" and "describe" are Derby ij commands, not SQL statements.  DTP uses JDBC to connect to the Derby database, so it can only issue SQL statements to the database.