查看weblogic报错日志_错误日志-关于weblogic连接池(5)

select job_id,job_name from a_job where (job_id in

(select job_id from a_question a1,c_question_job b1,a_project c1 where

a1.ques_id = b1.ques_id and b1.ques_type='2' and a1.proj_id = c1.proj_id and c1.proj_id =?)

or job_id in

(select job_id from a_req a2,c_req_job b2,a_project c2 where

a2.req_id = b2.req_id and b2.req_type='2' and a2.proj_id = c2.proj_id and c2.proj_id =?) or job_id in

(select job_id from a_question_d a3,c_question_job b3,a_project c3 where

a3.ques_id = b3.ques_id and b3.ques_type='1' and a3.proj_id = c3.proj_id and c3.proj_id =?) or job_id in

(select job_id from a_req_d a4,c_req_job b4,a_project c4 where

a4.req_id = b4.req_id and b4.req_type='1' and a4.proj_id = c4.proj_id and c4.proj_id =?)) and job_executor=?

使用PreparedStatement语句执行上面的sql,在tomcat下使用tomcat的连接池是正确没有问题的,但到了Weblogic里,换成Weblogic的连接池就不行了,查询出来的结果有问题,至于有什么规律没仔细研究,也没这个必要,到最后只能通过拼sql字符串的方式代替。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值