Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 11104 invoked from network); 20 Dec 2008 07:00:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2008 07:00:08 -0000 Received: (qmail 68436 invoked by uid 500); 20 Dec 2008 07:00:06 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 68410 invoked by uid 500); 20 Dec 2008 07:00:06 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 68388 invoked by uid 99); 20 Dec 2008 07:00:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Dec 2008 23:00:06 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Dec 2008 07:00:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3B288234C462 for ; Fri, 19 Dec 2008 22:59:44 -0800 (PST) Message-ID: <2119948989.1229756384182.JavaMail.jira@brutus> Date: Fri, 19 Dec 2008 22:59:44 -0800 (PST) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (OPENJPA-820) slices: a simple query is failing (unique, but totally sending wrong parameters to SQL) In-Reply-To: <557223660.1228863764193.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pinaki Poddar reassigned OPENJPA-820: ------------------------------------- Assignee: Pinaki Poddar > slices: a simple query is failing (unique, but totally sending wrong parameters to SQL) > --------------------------------------------------------------------------------------- > > Key: OPENJPA-820 > URL: https://issues.apache.org/jira/browse/OPENJPA-820 > Project: OpenJPA > Issue Type: Bug > Components: slice > Affects Versions: 2.0.0 > Reporter: Fernando > Assignee: Pinaki Poddar > Priority: Critical > Attachments: bad-log.txt > > > Thank you for fixing that PCPath issue! Now I can move on to find the next bug to fix. :) And I didn't have to wait long: > I am trying to run the simple query below, against 2 slices. > select this from com.protrade.fandom.data.entities.TeamFanJersey this where this.teamFan = :p0 > These are the two queries run on the low level databases: > SELECT t0.JDOID, t0.JERSEYLEVEL, t0.TEAMFAN_JDOID FROM TEAMFANJERSEY t0 WHERE (t0.TEAMFAN_JDOID IS NULL) > SELECT t0.JDOID, t0.JERSEYLEVEL, t0.TEAMFAN_JDOID FROM TEAMFANJERSEY t0 WHERE (t0.TEAMFAN_JDOID = 8574250) > As you can see, the query run against Slice1 thinks the parameter is Null, while the query run against Slice2, knows the proper value of the parameter. This SQL is the lowlevel sql sent through the Mysql Driver (mysql driver logging). > I guess it's another bug in the DistributedPreparedStatement not properly setting parameters to all sub statements.. just a guess. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.