-->
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.  [ 1 post ] 
Author Message
 Post subject: DB2400Dialect does not allow naming=system property
PostPosted: Thu Apr 26, 2007 4:20 pm 
Newbie

Joined: Wed Apr 25, 2007 5:14 pm
Posts: 5
DB2400Dialect.getIdentitySelectString() fails when naming=system since it returns:
"select identity_val_local() from sysibm.sysdummy1"

it should return:
"select identity_val_local() from sysdummy1"

Error:
When using DB2400Dialect with naming=system, the following error
something like this will be generated in log:
SQL5016] Qualified object name SYSDUMMY1 not valid

Explanation:
On db2 on as/400, table names in sql can be fully qualified with schema name or unqaulified but they can't be mixed.

Qualified naming example:
When "naming" jdbc property is configured as:
jdbc:db2://someserver;naming=sql

then tables must be qualified with schema name:
select * from schema1.mytable

Unqualified naming example:
When "naming" and "library" jdbc properties are configured as:
jdbc:db2://someserver;naming=system;libraries=schema1,schema2,sysibm

then tables must NOT be qualified with schema name:
select * from mytable

mytable will be searched for in schema1 then schema2 then sysibm.

Solution:
The solution would be to allow DB2400Dialect to know when naming=system, then to omit "sysibm." qualification in sql.

See:
http://publib.boulder.ibm.com/infocente ... operty.htm
http://publib.boulder.ibm.com/infocente ... /rzahh.pdf (page 313)


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

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.