Number(?), what does it enforce
I am absolutely shocked and amazed that the following does not throw up an error when compiled. You only find out whats wrong when you try and run the package. Why is it that the compiler is not flagging an error? What an earth does the compiler do besides checking for syntactic errors???
create or replace package deleteme
is
g_age number(2) := 399999;
function get_it return number;
end deleteme;
Package created.
create or replace package body deleteme
is
function get_it
return number
is
l_myage number(3) := 9999999999;
begin
return 39;
end;
end deleteme;
Package created.
declare
x number(3);
begin
x := deleteme.get_it;
dbms_output.put_line(x);
end;
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: number precision too large
ORA-06512: at "GEN.DELETEME", line 3
ORA-06512: at line 4
Gus
What an earth does the compiler do besides checking for syntactic errors??? see http://en.wikipedia.org/wiki/Compiler
ummmm...
OK, firstly, would you want your compiler to execute the code everytime you compiled?
Secondly, why would you write this code? I mean, you had to have known that it was bad when you wrote it (your declaration and assignment are in the same line).
Thirdly, is there a real questions here? If you need help with the code I have provided it below:
create or replace package deleteme
is
g_age number(2) := 1;
function get_it return number;
end deleteme;
create or replace package body deleteme
is
function get_it
return number
is
l_myage number(3) := 0;
begin
return 39;
end;
end deleteme;
Similar Messages
-
If I block a number . What response does that party get if they call or text my number?
The call/message simply won't go through. If iMessage, it will show as delivered, but it actually won't be delivered.
Here's what it sounds like on their end, for calls:
http://www.wired.com/images_blogs/gadgetlab/2013/09/blocked_ios7.mp3 -
My bill show text messages from my cell number sent to my cell number what is that about
MMy bill shows text messages from my cell number sent to my number what does that mean
Jackie, this usually happens when the number that was texting you was blocked or unavailable. The billing system uses your own number as sort of a placeholder. It could be another reason, but as far as I know, that's the reason.
-
I replaced my iPhone with a Samsung Galaxy5 and I am not receiving all of my text messages now. The rep at the store told me to go to iTunes and take my phone # off of the account and that would fix the problem. Is that true? What does iTunes have to do with text messages anyway?
You need to remove your phone number from the iMessage system.
Read here: http://support.apple.com/kb/ts5185
~Lyssa -
What does this message mean baring in mind we don't know who 'Lareib' is?: ''Lareibs phone' is now using (my number) for iMessage'
How would we users in this forum also know who Lareib is?
It means what is stated, that person is now using your number for imessage. -
Transport Request Number - Object Status is LOCKED. What does it mean?
Hi Friends,
When checking in SE09 transaction my TR number "Object Status" is showing as LOCKED.
What does it mean
Whether I can transport objects under this TR Number to Quality System?
Will it give any problem while transporting?
Regards,
Viji.The main reason to lock the request is to avoid any duplications.
You can also unlock the request if you want using SE03 transaction.
Goto SE03 transaction,select unlock objects and execute.give your
request number and execute.it will be unlocked. -
my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?
my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?
-
I updated my iPhone 4S to the ios7 and now have a number 1 showing on my settings icon as if there were an update. I am completely updated. What does it mean? How do I get it off?
It means upi need tp plug it into iTunes and restore it.
-
What does "on my mac' mean and how do i delete or reduce the number of items in there?
What does "on my mac" mean and how do i delete or reduce the number?
Hi ya
I'm seeing this on my email screen, on the left hand side - under the "RSS Apple". The number of items in there is now 752. It's preventing me from sending and receiving emails in my AOL account.
Any help would be deeply appreciated.
Thank you. -
In place of the percentage number next to my battery icon, it now says "single percent format." What does this mean and what do i do about it?
You can use a keyboard command to prevent your iPod auto-syncing with iTunes. While connecting the iPod to the computer on a Mac hold down the Option and Command (⌥ and ⌘ Apple) keys together. This will stop the iPod from auto-syncing with iTunes and it will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer. Once you are safely connected go to the iPod Summary tab and make sure "manually manage music and videos" is checked:
iTunes for Mac - Keyboard Shortcuts
Managing content manually on iPod and iPhone -
This is probably a stupid question, but what does the red circle with a number in it mean on iCal? It looks just like the emails notification. I do not have anything do or up in my cal.
Actually, another person on the "more like this" had the right answer. It meant I had a notification for an invite that I needed to respond to.
Hope this helps you as much as it helped me.
D -
What does the iCloud with a phone number beside it mean when I pull my screen up on safari?
when I press the + button on the bottom of screen on safari, I see a little iCloud with a phone number beside it that is not mine. what does this mean?
sorry, not the + but the double square one that brings up the +
-
On my MBP, what does the uppercase number over calendar represent?
I'm running the latest version of Mountain Lion (10.8.2). I have Calendar in my Dock. In the upper right of the calendar icon is a red circle with a number (4 in this case) in it. What does that signify?
When I look at my calendar I have three marked sections: "On my Mac", iCloud, and Subscriptions. Each section has 4 calendars. The number I seen on the icon (4) is shown next to a calendar I have under the iCloud section. When I right click on that calendar I can change Sharing setting, and get Info, but nothing changes the displayed number 4.
Thoughts?
Tnx
SteveNevermind! Its a Notifications Center indicator
-
My iphone wont sync and shows an error number (13019)... What does this mean???
http://support.apple.com/kb/TS2830
-
When I bring a song into iTunes next to the number there is what looks like an exclamation mark ! - WHAT DOES THAT MEAN?
For example, 1 ! Without You
I can't load it onto my ipod - I never saw that before.I found my answer - thanks
Maybe you are looking for
-
Cm1312nfi mfp on 32bit windows 7 - upgraded with full solution sw and can't scan from printer
I have had a cm1312nfi mrp since 2009 that works fine but my HP Solution centre stopped giving me ink levels. I uninstalled the printer software and downloded the current full solution sw for 32 bit windows 7 from HP. The printer works but I did not
-
How can I copy a button to a panel?
I am working on this project where I have 3 buttons that need to be dragged to a panel. I have created a new TransferHanndler that can support dropping to a panel. Now I have to figure out to actually copy an image of that button to the panel whereve
-
hi everybody im retrieving all the assets in the system in an internal table and convert it to csv format using the fm SAP_CONVERT_TO_CSV_FORMAT, there are abt 50000 records when executing the program, im getting an error ' Fails to allocate memory'
-
Why is the Extract in DW not launching?
It just sits there saying it's launching, but nothing happens. I am using a paid version, not a trial version. I uninstalled and re-installed. Still doesn't launch.
-
Whenever I try to download a file, Firefox 4 asks me to choose a destination folder, then when I browse and choose the folder for the download, Firefox just hangs, and I get the file picker unexpectedly closed by Windows message. I end up having to u