-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Conflict between local tables and public synonyms in oracle
PostPosted: Mon Mar 19, 2007 11:57 am 
Newbie

Joined: Fri Feb 20, 2004 10:13 am
Posts: 5
Location: Italy
Hi all,
I'm experiencing problems with schema valdation because a local table has the same name of a public synonyms, and some columns are validated against the public synonym.

I know that exists an attribute "schema" but i cannot fix the name in the mapping because it can change between development, production, test and so on.

Exists a way to define a priority?

Any help is appreciated

Regards
Franco


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 21, 2007 12:54 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Depends on the database. In SQLServer, you can quote the string either in backquotes, or better, in square brackets. So
Code:
select * from select
is nonsense, but
Code:
select * from [select]
will return all values from the table called "select".

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.