select u.user_id, u.first_name, u.last_name, u.create_date
from usm_user u
inner join usm_user_role_map urm on u.user_id=urm.user_id
inner join usm_role r on r.role_id=urm.role_id
inner join usm_role_func_map rfm on r.role_id=rfm.role_id
inner join usm_function f on rfm.func_id=f.func_id
inner join usm_application a on f.app_id=a.app_id
where r.role_name=? and a.app_name=?
select u.user_id, u.first_name, u.last_name, u.create_date
from usm_user u
inner join usm_user_grp_map ugm on ugm.user_id=u.user_id
inner join usm_grp_role_map grm on ugm.group_id=grm.group_id
inner join usm_role r on r.role_id=grm.role_id
inner join usm_role_func_map rfm on r.role_id=rfm.role_id
inner join usm_function f on rfm.func_id=f.func_id
inner join usm_application a on f.app_id=a.app_id
where r.role_name=? and a.app_name=?
A java trace dump shows that we're waiting for something in
a sort cursor:
3XMTHREADINFO "Servlet.Engine.Transports : 4" (TID:0x307F8B48,
sys_thread_t:0x5AD065A8, state:CW, native ID:0x3FB7) prio=5
4XESTACKTRACE at java.lang.Object.wait(Native Method)
4XESTACKTRACE at java.lang.Object.wait(Object.java(Compiled
Code))
4XESTACKTRACE at com.borland.datastore.vb.a(Unknown Source)
4XESTACKTRACE at com.borland.datastore.vb.j(Unknown Source)
4XESTACKTRACE at com.borland.datastore.vb.p(Unknown Source)
4XESTACKTRACE at
com.borland.datastore.SqlHelp.createSortCursor(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.rb.x(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.rb.a(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.nb.a(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.nb.a(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.hb.b(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.cb.b(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.id.a(Unknown Source)
4XESTACKTRACE at com.borland.datastore.q2.QueryEngine.a(Unknown
Source)
4XESTACKTRACE at
com.borland.datastore.q2.QueryEngine.execute(Unknown Source)
4XESTACKTRACE at com.borland.datastore.jdbc.LConnection.a(Unknown
Source)
4XESTACKTRACE at
com.borland.datastore.jdbc.LStatement.executeQuery(Unknown Source)
4XESTACKTRACE at
sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
4XESTACKTRACE at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
4XESTACKTRACE at
java.lang.reflect.Method.invoke(Method.java(Compiled Code))
4XESTACKTRACE at
com.ibatis.common.jdbc.logging.PreparedStatementLogProxy.invoke(PreparedStatementLogProxy.java(Compiled
Code))
4XESTACKTRACE at $Proxy13.executeQuery(Unknown Source)
4XESTACKTRACE at
com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java(Compiled
Code))
Any ideas what's happening here?
--
Michael Benveniste -- mhb-...@clearether.com
Spam and UCE professionally evaluated for $250. Use this email
address only to submit mail for evaluation.
> select u.user_id, u.first_name, u.last_name, u.create_date
> from usm_user u
> inner join usm_user_role_map urm on u.user_id=urm.user_id
> inner join usm_role r on r.role_id=urm.role_id
> inner join usm_role_func_map rfm on r.role_id=rfm.role_id
> inner join usm_function f on rfm.func_id=f.func_id
> inner join usm_application a on f.app_id=a.app_id
> where r.role_name=? and a.app_name=?
> union
> select u.user_id, u.first_name, u.last_name, u.create_date
> from usm_user u
> inner join usm_user_grp_map ugm on ugm.user_id=u.user_id
> inner join usm_grp_role_map grm on ugm.group_id=grm.group_id
> inner join usm_role r on r.role_id=grm.role_id
> inner join usm_role_func_map rfm on r.role_id=rfm.role_id
> inner join usm_function f on rfm.func_id=f.func_id
> inner join usm_application a on f.app_id=a.app_id
> where r.role_name=? and a.app_name=?
--
What version of JDataStore are you using?
-Steve
"Michael Benveniste" <mhb-...@clearether.com> wrote in message
news:4575ea9c$1...@newsgroups.borland.com...
6.7.25. I eventually opened an incident with Borland and
was told it was likely a bug in that version.
-Steve
"Michael Benveniste" <mhb-...@clearether.com> wrote in message
news:4ud6uoF...@mid.individual.net...