Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 94954 invoked from network); 5 Aug 2010 10:52:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 10:52:42 -0000 Received: (qmail 8526 invoked by uid 500); 5 Aug 2010 10:52:42 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 8494 invoked by uid 500); 5 Aug 2010 10:52:41 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 8487 invoked by uid 99); 5 Aug 2010 10:52:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 10:52:40 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 10:52:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o75AqFsH027086 for ; Thu, 5 Aug 2010 10:52:16 GMT Message-ID: <30065913.178191281005535920.JavaMail.jira@thor> Date: Thu, 5 Aug 2010 06:52:15 -0400 (EDT) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Commented: (CAY-1470) Oracle: Problem with bind CHAR in select In-Reply-To: <20649992.157711280930776006.JavaMail.jira@thor> 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/CAY-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895644#action_12895644 ] Andrus Adamchik commented on CAY-1470: -------------------------------------- > SET_FIXED_CHAR_METHOD.getClass().equals(value.getClass()) This seems wrong. SET_FIXED_CHAR_METHOD.getClass() is "java.lang.refelect.Method" > Oracle: Problem with bind CHAR in select > ---------------------------------------- > > Key: CAY-1470 > URL: https://issues.apache.org/jira/browse/CAY-1470 > Project: Cayenne > Issue Type: Bug > Components: Core Library > Affects Versions: 2.0 branch, 3.0 > Reporter: Evgeny Ryabitskiy > Assignee: Evgeny Ryabitskiy > Priority: Critical > Fix For: 2.0.5, 3.1M1 > > Attachments: CAY-1470.patch, CAY-1470.patch > > > I have Table tUser > desc tUser > Name Null Type > ------------------------------ -------- > USERID NOT NULL NUMBER(15) > BRIEF NOT NULL CHAR(30) > And wish to find user with BRIEF 'credit' : > INFO QueryLogger: Detected and installed adapter: org.apache.cayenne.dba.oracle.OracleAdapter > INFO QueryLogger: SELECT * FROM tUser WHERE Brief = ? [bind: 'credit'] > INFO QueryLogger: === returned 0 rows. - took 125 ms. > But if I try whitespaces at the end I would get: > INFO QueryLogger: SELECT * FROM tUser WHERE Brief = ? [bind: 'credit '] > INFO QueryLogger: === returned 1 row. - took 109 ms. > It's absolutely not CROSS DB behavior! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.