Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 10546 invoked from network); 7 May 2009 09:33:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 09:33:00 -0000 Received: (qmail 35291 invoked by uid 500); 7 May 2009 09:33:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 35225 invoked by uid 500); 7 May 2009 09:33:00 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 35217 invoked by uid 99); 7 May 2009 09:33:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 09:33:00 +0000 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; Thu, 07 May 2009 09:32:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 03ACA234C046 for ; Thu, 7 May 2009 02:32:31 -0700 (PDT) Message-ID: <1861485777.1241688751005.JavaMail.jira@brutus> Date: Thu, 7 May 2009 02:32:31 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4032) Record not found in some SQL In-Reply-To: <504041643.1233158521920.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-4032: -------------------------------------- Attachment: check-table.txt SYSCS_CHECK_TABLE() does detect this error, by the way. But it has to be run with a debug build. I've attached a file the full output. Here's the first line: ERROR 38000: The exception 'org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED Bad order of rows found in conglomerate: org.apache.derby.impl.store.access.btree.index.B2IController@1eb717e > Record not found in some SQL > ---------------------------- > > Key: DERBY-4032 > URL: https://issues.apache.org/jira/browse/DERBY-4032 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.3.2.1 > Environment: Windows XP > Reporter: Chip Hartney > Attachments: check-table.txt, OrderEntryDB-base.zip, OrderEntryDB-seg0-part1.zip, OrderEntryDB-seg0-part2.zip, OrderEntryDB-seg0-part3.zip, OrderEntryDB-seg0-part4.zip, OrderEntryDB-seg0-part5.zip, OrderEntryDB-seg0-part6.zip, OrderEntryDB-seg0-part7.zip > > > Per discussion at http://www.nabble.com/Record-not-found-in-some-SQL---Bug--td21700110.html... > I have a "Product" table with a "Num" column that contains a record that is only accessible by some SQL and not others. I have tested this by JDBC access from my Java app as well was from IJ directly. > ij> select "Num", length("Num") as "Len" from app."Product" where "Num" like 'HG1549%'; > Num |Len > ---------------------------- > HG15490 |7 > HG15493 |7 > HG15497 |7 <== Found as expected > HG15499 |7 > 4 rows selected > ij> select "Num" from app."Product" where "Num" = 'HG15490'; > Num > ---------------- > HG15490 <== Found as expected > 1 row selected > ij> select "Num" from app."Product" where "Num" = 'HG15493'; > Num > ---------------- > HG15493 <== Found as expected > 1 row selected > ij> select "Num" from app."Product" where "Num" = 'HG15499'; > Num > ---------------- > HG15499 <== Found as expected > 1 row selected > ij> select "Num" from app."Product" where "Num" = 'HG15497'; > Num > ---------------- > 0 rows selected <== Not found!!! > What could possibly hide the 'HG15497' record from the last SELECT? > And it's not just a matter of equality versus inequality...as the following SQL does return the record: > SELECT I."STYLE" FROM TEMP."ZJVINV2" AS I INNER JOIN APP."Product" AS P ON I."STYLE" = P."Num" WHERE I."STYLE" = 'HG15497'; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.