× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tomconrad reported 2017-12-18T19:06:44Z  · last modified 2018-03-13T17:21:31Z

Query Analyzer Execute edit gives error "Failed to set current schema" with Oracle schema containing a dot.


Priority Low
Complexity Unknown
Component Q Analyzer
Version Future

Here is the test case:

CREATE USER "one.two"
  IDENTIFIED BY "one.two"
GO
ALTER USER "one.two" QUOTA 100M ON USERS 
GO
GRANT UNLIMITED TABLESPACE TO "one.two"
GO
GRANT create session TO "one.two"
GO
GRANT create table TO "one.two"
GO
GRANT create view TO "one.two"
GO
GRANT create any trigger TO "one.two"
GO
GRANT create any procedure TO "one.two"
GO
GRANT create sequence TO "one.two"
GO
GRANT create synonym TO "one.two"   
GO
CREATE TABLE "one.two"."t1"  ( 
"c1" VARCHAR2(25) NULL 
)
STORAGE( BUFFER_POOL DEFAULT )
PARALLEL( DEGREE DEFAULT )
GO
INSERT INTO "one.two"."t1"("c1") 
VALUES('Test1')
GO
SELECT * FROM "one.two"."t1"
GO
 
Highlight the last select statement in a QA window and Click on "Execute Edit" . See attached.
 
The result is an error trying to set the current schema. 
 
The problem is that StatementParser.breakTableSchemaDatabaseServerPathWithQuotes is not taking in account that a schema name can have a dot. It then breaks the schema into schema and database components. The connection cannot be made since the schema name is now incomplete. 
 
 
 
 
 
 
1 attachment

Issue #15503

New
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017