Error to the function

Hi gurus

Looks like I did something ridiculous in my service, I appreciate if someone guide me to solve this function...

Code

create or replace function f_colon (number w_rec)

VARCHAR2 is back

AA varchar2 (6);

Start

LENGTH WHEN CARTER (w_rec) = 3 THEN

AA: = substr (w_rec, 1, 1) |': ' | substr (w_rec, 2, 3)

WHEN LENGTH (w_rec) = 4 THEN

AA: = substr (w_rec, 1, 2) |': ' | substr (w_rec, 3, 4)

end;

Return (AA);

end f_colon;

Concerning

Muzz

Here's a simple comparison to choose... of double vs a simple assignment only using the pl/sql code.  For 1 million rows select... double takes almost 10 times as long and has a recursive call for each line.  Ouch.

SQL > create table t (n number);

Table created.

SQL > insert into t (n)

2 Select trunc (dbms_random.value (100,9999))

3 double

4. connect by level<=>

1000000 rows created.

SQL > commit;

Validation complete.

SQL > create or replace function f_colon (number w_rec)

2 return varchar2 is

3

4 l_rec_in varchar2 (30): = to_char (w_rec);

VARCHAR2 (30) l_result 5.

6

7. start

case 8 length (l_rec_in)

9 when 3 then l_result: = substr (l_rec_in, 1, 1) |': ' | substr (l_rec_in, 2, 3);

10 when 4 then l_result: = substr (l_rec_in, 1, 2) |': ' | substr (l_rec_in, 3, 4);

11 else l_result: = l_rec_in;

12 end case;

13 return l_result;

14 end f_colon;

15.

The function is created.

SQL > set arraysize 100

SQL > set timing on

SQL > select f_colon (n) of t.

1000000 selected lines.

Elapsed time: 00:00:03.18

Statistics

----------------------------------------------------------

0 recursive calls

0 db block Gets

11578 consistent gets

0 physical reads

0 redo size

8849985 bytes sent via SQL * Net to client

110540 bytes received via SQL * Net from client

10001 SQL * Net back and forth to and from the client

0 sorts (memory)

0 sorts (disk)

1000000 rows processed

SQL > create or replace function f_colon (number w_rec)

2 return varchar2 is

3

4 l_rec_in varchar2 (30): = to_char (w_rec);

VARCHAR2 (30) l_result 5.

6

7. start

8. Select

case 9 length (l_rec_in)

10 when 3 then substr (l_rec_in, 1, 1) |': ' | substr (l_rec_in, 2, 3)

11 when 4 then substr (l_rec_in, 1, 2) |': ' | substr (l_rec_in, 3, 4)

12 l_rec_in else

13 end

14 in l_result

15 double;

16 return l_result;

end 17 f_colon;

18.

The function is created.

SQL > select f_colon (n) of t.

1000000 selected lines.

Elapsed time: 00:00:31.13

Statistics

----------------------------------------------------------

1000000 recursive calls

0 db block Gets

11578 consistent gets

0 physical reads

0 redo size

8849985 bytes sent via SQL * Net to client

110540 bytes received via SQL * Net from client

10001 SQL * Net back and forth to and from the client

0 sorts (memory)

0 sorts (disk)

1000000 rows processed

Tags: Database

Similar Questions

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not an object (evaluation of "a.rules")

    I have this error on my Web site every time that I go. It disappears when I refresh three times.

    "MuseJSAssert: error calling the function switch: TypeError: undefined is not an object (evaluation of"a.rules").

    I downloaded the site with Filezila.

    Please help, what's wrong here?

    Thank you

    Hi Barbara,

    The question began to happen after you downloaded using the latest version of Muse?

    If so, can you try to remove the old files of the web server and re-upload using Muse?

    Kind regards

    Akshay

  • JavaScript exception: error calling the function switch: TypeError: one is not defined

    Hello

    I received the following message: exception of JavaScript: error component the function switch: TypeError: one is not defined in the works of Firefox (Firefox only) IE and Chrome.

    I test a lot of things to ignore the error, but nothing work...

    DS why does not work which:

    1. <script type=' text/javascript '>
    2. ( function blockError()( ) { }
    3. return true ;
    4. }
    5. window. OnError = blockError
    6. < /script >


    the problem is not a problem of accommodation or other things, the problem is with prallax effect iframes, I know. (I had no sensible design)


    and I don't know if I had this problem before upgrading "responive muse..."


    Question: Chrome and IE maybe a car "ignore the function" to find errors javascrpit?


    So how can I delete this failure message ;)?

    A better approach would be to look for invalid code on the page. What is the URL? Each browser is a little different about how he reacts to different cases of invalid HTML. The error that you touch is a common result of having the incorrect HTML code inserted into your page via thearticle in the Page Properties or object > insert HTML code (or in rare cases, a third party widget).

  • JavaScript exception: error calling the function switch: TypeError: undefined is not an object (evaluation "jQuery.browser.msie") - HOW I ME get RID OF THIS

    Screen Shot 2015-12-12 at 16.54.47.pngScreen Shot 2015-12-12 at 17.01.45.png

    Hello

    I get these errors a lot lately on my sites of muse - it happens when I rename pages or change the navigation menu - I tried several times and this isn't to do with external plugins - this is a bug of muse - appears when my loading sites and also when you select a page in the navigation bar - in the past for a single page websites - I just copy the contents in memory - remove the rebonding and page - everything and it works again - of course, I don't want to do that with Web sites with multiple pages - in the past, anyone in the forum mentioned deleting a file of muse on the server to reset something - any who want to add to it or guide me to solve these problems, so I know what to do when they arrive

    Jay

    Don't know if it's the same thing, but share this discussion JavaScript exception: error calling the function of selection: [object error] after the last update of the software Adobe Muse.  I export the html files and load them on my server.  I replaced all the files.  Only happens in IE11 just in case it helps.

  • Get this error on pages MuseJSAssert: error calling the function switch: TypeError: $(...). museMenu is not a function. Have read and did what I could find to solve problems.

    Hi I keep getting the error MuseJSAssert: error calling the function switch: TypeError: $(...). museMenu is not a function on my Web site which is not published, but I am downloading in British Colombia through muse.

    I'm on a PC.

    I tried export to HTML and still have the same problems locally.

    I saw that someone had a problem with mailchimp forms in one of a previous post. I removed the a widget of external source? for reservation and it was always happening.

    I created a new project like this and downloaded BC site all the files again to see if she could make a difference but still have the error.

    It's my URL BCdraft - home

    I tried to look at the site in the section "console" (where you can see the code of pages) to see if I could see the error that people had already advised but I get nothing... maybe not completely published because?

    I have reloaded the site through the muse in British Colombia with "all files" and is always the same.

    Here are some pictures that can help...

    Once on the home page, it may come with the error immediately or not... If you choose to say the title of the FAQ

    choose faq.png

    You must then (or choose other titles until it is) have this error coming...

    error.png

    Note that the title you have previously chosen as 'FAQ' now as 'price '.

    Changes to old title pricing.png

    This title is for some time and seems strange appears again.

    Here is a picture of scripts/css in the admin of BC as I've seen that this can be a problem but I don't know if this is normal or not and how to fix...

    cpanel.png

    I had taken a break from building the site for about a month and I had added on changes, but not them uploaded to the server just left saved on my PC.

    In the hope of an easy solution; p

    See you soon,.

    Steve.

    I published BC... what I wanted to say is that I did not live.

    Export HTML was to check if the error occurred in the HTML files locally.

    It ended up being a code of the external widget that was causing the problem. With him removed the pages work fine. (I had removed what I thought of them while troubleshooting, but I forgot to a separate embedded image)

    Specifically, it is because it was a pop-up overlay widget made for reservations. When I put it to then start a new page in the tab it works now. Seems that muse has changed to something allowing overlays?

    My thanks to Neha in support

  • MuseJSAssert: Error calling the function switch: TypeError: D.split is not a function

    I have this problem in my site:

    MuseJSAssert: Error calling the function switch: TypeError: D.split is not a function

    error-2.jpg

    and it's the loading error, please help!

    http://musecdn2.BusinessCatalyst.com/scripts/4.0/jQuery-1.8.3.min.js

    error-1.jpg

    I think it's solved now, please check the response of Zak here:

    https://forums.Adobe.com/thread/1879186

    Thank you

    Sanjit

  • MuseJSAssert: Error calling the function switch: TypeError: cannot read property 'msie' undefined

    Hello I have this JS error on my portfolio website.

    yeaforideas.com

    I tried to export to html and uploading this file on my FTP host site, but it did not work. We hope to have it resolved soon. Please advice. Thank you!

    Hi Yes,

    Please see the following post: MuseJSAssert: error calling the function switch: TypeError: 'undefined' is not a function (assessment ' )

    Kind regards

    Akshay

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not a function (assessment '$element .on this.')

    As usual I never update muse immediately incase of any question, however, a few days after the update (have not installed the update) I go on my site, this message appear out of no where "MuseJSAssert: error calling the function switch: TypeError: undefined is not a function (assessment ' this.)" ($element.sur ') ".

    So I decided to install the update and see, but the message would have still done appear then I wiped my server and download all my files to perhaps solve the problem of Javascript, and yet the message is still displayed.

    Note that this came from nowhere even tho I don't update my muse or uploaded to my FTP in days.

    My site entire is now totally useless after months in manufacturing.

    Can anyone help?

    The error on the sites is caused by having custom include the code that loads several different versions of jQuery. A single Web page should only have one.

    The redirect URL that fails intermittently. We actively work to diagnose and fix that, but which will not only cause these errors. Each Muse site contains a snippet of JavaScript that silently and automatically returns to use the version of jQuery that muse will be mailed to your host if the CA version is not available for some reason any.

    The problem is a number of customer sites have wrong incorporated several different versions of jQuery. When the CDN version is available, it is used. Unfortunately, when it is not available, an incompatible version loaded by the custom code or third-party widget is used and which translates these errors.

    Long term loading multiple versions of jQuery should be removed from the code or the third-party widgets on your site. In the short term, we will have solved CDN failure and these errors will disappear, but they return in the future if multiple copies of jQuery in the code no Adobe added to the page are not deleted.

  • MuseJSAssert: Error calling the function switch: TypeError: cannot read property 'msie' undefined. Please help me in this.

    MuseJSAssert: Error calling the function switch: TypeError: cannot read property 'msie' undefined. Please help me in this.

    Hello

    Please check the following thread,

    Re: MuseJSAssert: error by calling the function of selection: [Object Error]

    Let me know if you have any question.

  • I exported a must of the site in HTML format and get the following error - MuseJSAssert: error calling the function switch: SecurityError: cannot read property 'documentLes' of 'HTMLIFrameElement': blocked a frame with original 'null '.

    I exported a must of the site in HTML format and get the following error - MuseJSAssert: error calling the function switch: SecurityError: cannot read property 'documentLes' of 'HTMLIFrameElement': blocked a frame with original 'null '.

    Does Anyon know what to do - how to fix this?

    Hello

    could you please take a look at this and see if that helps

    Java Script alert: MuseJSAssert: error calling the function switch: security error?

  • Error MESSAGE: MuseJSAssert: error calling the function switch: TypeError: a.on is not a function

    I get this error message on Chrome (see screenshot). A similar one on Safari (see screenshot). And what follows on Firefox:

    MuseJSAssert: Error calling the function switch: TypeError: $(...). registerBackgroundPositionScrollEffect is not a function

    The site is online here: http://www.flashbangfiction.com/

    I had something like this before and I fixed by removing the web cache etc. Now, nothing works to solve.

    Can anyone suggest a solution?

    Chrome Screen Grab.jpg

    Safari Screengrab.jpg

    Hello

    I just checked the site and I don't have the error. I use Google Chrome, Version 40.0.2214.111 m

    Let me know if you have any question.

  • That is producing this error: MuseJSAssert: error calling the function switch: Error: Invalid argument

    Website: http://lovehopemercy.org/

    In my navigation header by clicking on the option "VISIT US", that is to say generates this error: MuseJSAssert: error calling the function switch: error: invalid argument

    The other options do not work correctly. I get an error on export as HTML of MUSE, but the link works fine in other browsers. I download using Dreamweaver CC 2014. Reversal function works fine; it's the direct click of the menu item at the top that causes the problem.

    Did I miss a bad link or something that I can fix?

    Thanks in advance.

    Hello

    Could you please try some suggestions given here and see if it works for you.

    Error after update today: MuseJSAssert:Error call function argument: Error: Invalid selector

    Let me know if you have any question.

    Concerning

    Vivek

  • {Error: MuseJSAssert: error calling the function switch: SyntaxError: unexpected token}

    I built my site for the last days, and that 30 minutes, I click on the "Preview in browser" option to check my progress. {On one of these controls, as soon as the page loaded, I got the MuseJSAssert error message: error calling the function switch: SyntaxError: unexpected token} in a pop-up window and all my viewers stopped working. I tried to restart the browser, muse, my computer and even tried to save as a new website to use instead, and none of these options worked. Any ideas on how I can fix?

    Screen Shot 2014-11-10 at 2.12.21 PM.png

    If you have added a custom HTML/CSS/JS code using Page Properties > section Metadata or by using the function insert HTML code, try to remove and then preview.

    If the problem persists after removing all of the custom code, please send your .muse file (saved after removing all custom code) at [email protected]. Make sure that you mention the link to this topic in the subject of the e-mail.

    See you soon,.

    Vikas

  • MuseJSAssert: Error calling the function switch: ReferenceError: thiis is undefined

    I get this error once I have download my files on my hosting server. However, it exports very well in HTML and views very well when I publish.

    MuseJSAssert: Error calling the function switch: ReferenceError: thiis is undefined

    Hello

    I suggest you refer to the links below that has the solution for the similar problem.

    MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined.

    MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined

    Get ' museJSAssert: error by calling the selection function: reference error: Web Pro is not defined.

    Concerning

    Vivek

  • MuseJSAssert: Error calling the function switch: TypeError: $(...). toBrowserWidth is not a function only on Firefox Cookies are erased and problem not solved.

    Receive error message

    MuseJSAssert: Error calling the function switch: TypeError: $(...). toBrowserWidth is not a function

    only on Firefox

    for the url

    www.tx4you.com/index.html

    Please help

    browsererroroct2014.png

    Clear the cache of Firefox (no cookies). Preferences > advanced > cached Web Content click clean now. FWIW, loading the page just fine for me in Firefox.

  • MuseJSAssert: Error calling the function switch: TypeError: $(...). toBrowserWidth is not a function

    Hey,.

    I made a site with Muse on April 2014 and now (September 2014) I got the latest version of Adobe Muse, updated the site, send to an external FTP client directly from Muse, and now my client told me that he cannot see the site of Mozilla Firefox from his PC. It is said that MuseJSAssert: error calling the function switch: TypeError: $(...). toBrowserWidth is not a function. He can see the site in Internet Explorer. And it works with my Firefox, Chrome and Safari browsers on mac.

    I have found some answers and tried: I added / of the museutils.js of the file so that it looks like this: {url:"/scripts/pie.js... and (" / MuseJSassert:... instead of: {url: "scripts/pie.js... and (' MuseJSassert:...") "}")}

    Done with the code in parentheses editor and send the files to a remote server with Filezilla.

    Now, it displays error on my browsers as well, he said: some of the files on the server may be missing or incorrect. After you click OK, the site seems normal.

    I also deleted the site distance and exported directly from Muse again. Now it looks fine on my browser again, but not customers.

    Any help?

    It's frustrating because I'm not a coder (I chose the Muse of reason) and now I don't know what to do...

    I checked out the site on my end, but can't reproduce the same error:

    http://take.Ms/dAPJ0

    Please try to delete browser cookies or try to reset the preferences.

    Thank you

    Sanjit

Maybe you are looking for

  • My deleted emails back

    I continuously remove my emails to find they reappear once it checks for emails. I even they removed from my ISP server.

  • Automatic reception of faxes on 6500 a

    When you receive a fax on my 6500 has, the display requires that I accept the printing of b4 Telec.  How can I change this function so that a fax will print automatically?

  • Impossible to determine the output level

    As there is no sign of 'About' in Firefox 4, I can't say the current output level. How can I do this? I can't provide information on troubleshooting, help under the Firefox button option takes me directly to: http://support.Mozilla.com/en-us/KB/Firef

  • Name of the network-WRT610N returns default linksys

    Hi all, in the last two months, the name of network for my router id is returned back to linksys a couple of times, with the loss of the password.  Any ideas of what can cause that?  Thanks for any help.

  • UCS-C210 m2 low IOPS / s

    I currently have a case for it with cisco, but I thought that I post to the community to seek one advises... I have 2 ucs c210 servers, The two are almost identical. Ucs1 - has 24 sons of CPU power and 32 GB of ram, Ucs2 - has 16 sons of CPU and 48 g