Advertisement

08.27.2008 at 03:13AM PDT, ID: 23681376
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.5

Different behavior between Oracle 8i and Oracle 10g: implicite data type conversion within a record field

Asked by Polymnie in Oracle 10.x, Oracle 8.x, PL / SQL

Tags: ,

With Oracle 10.2.0.4 (Aix 5.3) The code attached returns
w_end_date 01-DEC-09
that is functionnaly incorrect (Char comparison)

With Oracle 8i the result is
w_end_date 21-OCT-08
that is functionnaly correct (date type)

with To_date(NULL) in the decode, the behaviour is the same for the two database versions.

The problem is that we have potentially a lot of (bad) code written like this code portion and I'm looking for a global (database parameter or Patch) to fix the problem.

Nothing found in metalink.

I tried with "alter session set plsql_optimize_level = 0", but no change.

Thanks for your Help (the production delivery is stopped) and best regards.

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
set serveroutput on
declare
cursor ctest is select
               decode(nvl(2,0),
                    0, null,
                    add_months(to_date('21/08/2008','DD/MM/YYYY'),2)
           ) d_date from dual;
w_end_date date;           
begin
 
for rec in ctest
loop
    w_end_date := least(rec.d_date, to_date('01/12/2009','DD/MM/YYYY'));
    dbms_output.put_line ('w_end_date ' || w_end_date );
end loop;
 
end;
[+][-]08.27.2008 at 06:40AM PDT, ID: 22324625

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 06:46AM PDT, ID: 22324679

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 06:50AM PDT, ID: 22324711

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 06:53AM PDT, ID: 22324745

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 10.x, Oracle 8.x, PL / SQL
Tags: PL/SQL, Oracle 10g 10.2.0.4
Sign Up Now!
Solution Provided By: sdstuber
Participating Experts: 3
Solution Grade: B
 
 
[+][-]08.28.2008 at 04:30AM PDT, ID: 22333582

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.28.2008 at 05:09AM PDT, ID: 22333819

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628