RE: Where did 0 go?

From: Eugene Pipko <>
Date: Wed, 23 Sep 2009 14:22:49 -0700
Message-ID: <>

Neil, you are correct, I asked for a code of the function and ... it returned NUMBER, so conversion took place.

Sorry, I was too quick to reply and provided misleading info.

After changing number to varchar2, we get zero back.



Eugene Pipko
Seattle Pacific Industries
office: 253.872.5243
cell: 206.304.7726
P Please consider the environment before printing this e-mail.

From: neil kodner [] Sent: Wednesday, September 23, 2009 2:16 PM To: Eugene Pipko; oracle-l List
Subject: Re: Where did 0 go?

if table.colum%type is in fact a varchar2 like you say then something inside of func_t is likely treating it as a number. can we see the relevant parts of funct_t? On Sep 23, 2009, at 4:55 PM, Eugene Pipko wrote:

Hi all,
I have a potentially silly question and need your help.

Procedure abc is

vDept     table.column%type;  <====== varchar2(80)
 Begin     ........
                vDept := func_t(par1, par2);



Function returns 057, however when it gets assigned to vDept it turns into 57. How do I preserver zero?


Eugene Pipko
P Please consider the environment before printing this e-mail.

Received on Wed Sep 23 2009 - 16:22:49 CDT

Original text of this message