Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id hABK9V802238
 for <oracle-l@orafaq.net>; Tue, 11 Nov 2003 14:09:31 -0600
X-ClientAddr: 66.27.56.212
Received: from www3.fatcity.com (rrcs-west-66-27-56-212.biz.rr.com [66.27.56.212])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id hABK9Sc02230
 for <oracle-l@orafaq.net>; Tue, 11 Nov 2003 14:09:30 -0600
Received: (from root@localhost)
 by www3.fatcity.com (8.11.6/8.11.6) id hABHFS131308
 for oracle-l@orafaq.net; Tue, 11 Nov 2003 09:15:28 -0800
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D6561; Tue, 11 Nov 2003 09:19:26 -0800
Message-ID: <F001.005D6561.20031111091926@fatcity.com>
Date: Tue, 11 Nov 2003 09:19:26 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Chris Stephens <ChrisStephens@affina.com>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Chris Stephens <ChrisStephens@affina.com>
Subject: SQL comparison addition:
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


I just tried:

  1  SELECT count(*)
  2      FROM global.client_dim a
  3*     WHERE sys_context('userenv','session_user') = a.REPORTS_LOGIN
SQL> /

  COUNT(*)
----------
         1


...but we had a problem 2 weeks ago where the comparison only worked when I
put in the trim.

?????????

 1  SELECT count(*)
 2      FROM global.client_dim a
 3*     WHERE TRIM(sys_context('userenv','session_user'))
=TRIM(a.REPORTS_LOGIN)
SQL> /

  COUNT(*)
----------
         0
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Chris Stephens
  INET: ChrisStephens@affina.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

