Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 61422 invoked from network); 17 Nov 2008 17:34:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2008 17:34:36 -0000 Received: (qmail 74177 invoked by uid 500); 17 Nov 2008 17:34:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 74083 invoked by uid 500); 17 Nov 2008 17:34:43 -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 74065 invoked by uid 99); 17 Nov 2008 17:34:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2008 09:34:43 -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; Mon, 17 Nov 2008 17:33:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 57FE7234C286 for ; Mon, 17 Nov 2008 09:33:44 -0800 (PST) Message-ID: <1855807358.1226943224359.JavaMail.jira@brutus> Date: Mon, 17 Nov 2008 09:33:44 -0800 (PST) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3876) Stack overflow when issuing SELECT statements with *lots* of 'OR' in the WHERE clause In-Reply-To: <1793698901.1221216464297.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3876?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-3876: ---------------------------------- Issue Type: Improvement (was: Bug) > Stack overflow when issuing SELECT statements with *lots* of 'OR' in the = WHERE clause > -------------------------------------------------------------------------= ------------ > > Key: DERBY-3876 > URL: https://issues.apache.org/jira/browse/DERBY-3876 > Project: Derby > Issue Type: Improvement > Reporter: =C3=98yvind Harboe > > The problem is that e.g. Cayenne uses *long* SQL statements with *lots* o= f OR statements to implement certain operations. > This causes a stack overflow as evaluation of 'OR' is implemented recursi= vely. > Could an iterative implementation trivially replace the recursive impleme= ntation?=20 > at org.apache.derby.impl.sql.compile.OrNode.bindExpression(Unknown Source= ) > at org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Un= known Source) > at org.apache.derby.impl.sql.compile.BinaryLogicalOperatorNode.bindExpres= sion(Unknown Source) > at org.apache.derby.impl.sql.compile.OrNode.bindExpression(Unknown Source= ) > at org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Un= known Source) > at org.apache.derby.impl.sql.compile.BinaryLogicalOperatorNode.bindExpres= sion(Unknown Source) > at org.apache.derby.impl.sql.compile.OrNode.bindExpression(Unknown Source= ) > at org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Un= known Source) > at org.apache.derby.impl.sql.compile.BinaryLogicalOperatorNode.bindExpres= sion(Unknown Source) > at org.apache.derby.impl.sql.compile.OrNode.bindExpression(Unknown Source= ) > at org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Un= known Source) > at org.apache.derby.impl.sql.compile.BinaryLogicalOpera > See also > https://issues.apache.org/cayenne/browse/CAY-1079?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12974#a= ction_12974 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.