Problems with WHENEVER SQLERROR

I'm creating a PRO C application, and I'm having problems with the use of WHENEVER SQLERROR DO <function>.
I've got this function: void mensajeDeError(int error); defined in a static library, and compiles perfectly, but when I try to call it from a program, I get this warning message:
warning: improper pointer/integer combination: arg #1
I've checked the call to the function a lot of times, but I haven't got any solution, because it's right.
I've realized, that this funcion (if you put in into a structure of WHENEVER SQLERROR DO), only works if you pass a char* as a parameter too, but not with the rest of stardard types of variables (f.e. ints, floats, etc.,)
I hope you give me a solution.
Thank you.
Juan Carlos.

EXEC SQL WHENEVER SQLERROR DO sql_error();
void sql_error()
char msg[512];
size_t buf_len, msg_len;
EXEC SQL WHENEVER SQLERROR CONTINUE;
buf_len = sizeof(msg);
sqlglm(msg, &buf_len, &msg_len);
printf("\nOracle error detected:");
printf("\n%.*s \n", msg_len, msg);
EXEC SQL ROLLBACK WORK RELEASE;
exit(1);
}Hope this help.
Thomas Devalli.
KSI Int'l
[mailto][email protected][mailto]
www.ksi.be
null

Similar Messages

  • Whenever sqlerror exit failure rollback in IDE's

    Hi all,
    Sorry to cross-post, but there is a tendancy for people who have a bunch of Expertise in SQL/PL/SQL to not check other forums all that often so I am hoping for more results here.
    I've started a thread over here:
    deployment scripts with "exit failure rollback"
    The basic problem is that when I have a SQLplus script with
    whenever sqlerror exit failure rollbackBut when this is executed through an IDE like toad or SQL developer the IDE appears to ignore the exit command and continues executing the script regardless of any errors.
    Has anyone encountered this problem previously and have a solution? or must I beat my deployment manager over the head to convince him to always use SQLPlus for database deployments?

    WhiteHat wrote:
    Hi all,
    Sorry to cross-post, but there is a tendancy for people who have a bunch of Expertise in SQL/PL/SQL to not check other forums all that often so I am hoping for more results here.
    I've started a thread over here:
    deployment scripts with "exit failure rollback"
    The basic problem is that when I have a SQLplus script with
    whenever sqlerror exit failure rollbackBut when this is executed through an IDE like toad or SQL developer the IDE appears to ignore the exit command and continues executing the script regardless of any errors.
    Has anyone encountered this problem previously and have a solution? or must I beat my deployment manager over the head to convince him to always use SQLPlus for database deployments?"WHENEVER" is sqlplus (only) syntax.
    Either only code to work with any/every client or only use sqlplus

  • Whenever sqlerror exit failure - what value is failure ?

    I have a sql*plus script file that is run from a batch file on windows. The script file starts with whenever sqlerror exit failure; But what error value is returned for failure on windows ?
    SQL*Plus documentation simply says it's "operating-system dependent values", but I can't find any other documentation saying what these values are!
    By trial & error it seems to return 1 on windows, so sets the ERRORLEVEL to 1 within the batch file.
    But are the values that SQL*Plus will return actually documented anywhere ?

    I don't remember ever seeing them documented, but they are the standard error codes for whatever OS you're using. At one time, windows help listed the error codes: 0=good, 1=failure, 2=warning; but I can't find that anymore either. and since the values are different by OS, another option is to exit with a specific value
    whenever sqlerror exit 4
    then you script becomes more portable, and you don't need to worry about changing errorcodes.

  • Friends,  i  have a problem with safari . Whenever i am typing in the safari main bar , so in the halfway through the typing my sentence/words are shifting to another main google search and in the end i have to type again in google

    Friends, 
    i  have a problem with safari . Whenever i am typing in the safari main bar , so in the halfway through the typing my sentence/words are shifting to another main google search and in the end i have to type again in google. I have attached a sample screenshot of the safari problem which i am facing. In this particular example i wanted to write Print Screen, however halfway,my typing automatically shifted to google bar?? can you guys help me.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this test is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The "Guest User" login created by "Find My Mac" is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

  • In iTunes the iPhone device icon will not show up whenever I plug in a USB into my PC but the iPhone icon will show up in 'This PC'  so if anyone who knows a resolution to my problem with my iTunes or PC,it would really help me.I need at least Help or Tip

    In iTunes the iPhone device icon will not show up whenever I plug in a USB into my PC but the iPhone icon will show up in 'This PC'  so if anyone who knows a resolution to my problem with my iTunes or PC,it would really help me.I need at least Help or some Tips.I have already tried many things to iTunes and my PC like trying to restore my PC but that do anything.Also,would it be fine if i contacted (call) Apple Support? Please,I need help because what I think is wrong is my PC,iPhone,or USB might be messed up so if anyone could help me with this,it would be really helpful and for anyone to be nice enough to help me.

    I think this article will help you.

  • I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    You are absolutely right.  Thought Enter meant Enter.  I was wrong.  Thank you for the help.
    Rod Rogers, Broker
    Accredited Land Consultant (ALC)
    Metcalf Land Company, Inc.
    Office: 864-585-0444
    Mobile: 864-316-0297
    Fax: 864-583-6000
    <http://www.metcalfland.com> www.metcalfland.com

  • Problem with latest version of firefox 15.0.1,whenever i download video from youtube or any other site using idm it shows .webm format instead of flv or mp4.

    problem with latest version of firefox 15.0.1,whenever i download video from youtube or any other site using idm it shows only .webm format to download instead of flv or mp4.previous version works fine.also other browsers work fine.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies

  • I have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search google in English

    i have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search by google this one is not such as my google home page
    == This happened ==
    Not sure how often
    == i use to search any page like movies or etc

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • Whenever I try to update iTunes to 10.5 I get the message 'There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.'

    Whenever I try to update iTunes to 10.5 I get the message 'There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.'
    I then uninstalled iTunes to try and reinstall it but I still get the same message for both 10.5 and previous versions, please help!

    My situation:
    - get error when updating iTunes from 1041 to 1050 or above: "There is a problem with this Windows Installer Package. A program required for this install to complete could not be run. Contact your support personnel or package vendor."
    My system: XP SP3 with all latest updates.
    Found out that the 1051 update fixes a major intrusion possibility during the update process, so I want to get iTunes upgraded to 1051.
    Did more research and the following worked (not known if all steps outlined were necessary) (I do not guarantee success nor any more issues as a result):
    - ran: MicrosoftFixit.ProgramInstallUninstall.exe (did JUST the patch option).
    - ran: Windows Installation Removal Tool.exe (uninstalled JUST the iTunes program installer folder) (this does not remove the actual program).
    - removed all apple software update registry entries.
    - removed: C:\Documents and Settings\All Users\Application Data\Apple\Installer Cache\(JUST the software updatefolders) (hidden folder).
    - removed: C:\Documents and Settings\current user\Local Settings\Application Data\Apple\(JUST the software  update folders) (hidden folder).
    - DID NOT need to restart
    - downloaded latest iTunes update (1051)
    - opened using WinRAR
    - extracted all files
    - ran JUST the apple software update MSI
    - it succeeded
    - ran JUST the iTunes MSI
    - it succeeded
    - normally I then uninstall the apple software update program, but DID NOT this time
    - DID NOT need to restart
    Hope it works for you.

  • Does anyone has problems with Apps store whenever u rotate the ipad the 4th generation?

    Hi,
       I have problems with Apps Store whenever I rotate the device it will just auto exit from the apps store and back to home screen.

    Try a rest: Simultaneously hold down the Home and On buttons until the iPad shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the iPad back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.

  • Hey i have this problem with my mac.. that its on its own shuts itself whenever i m using google chrome..i updated to yosemite but the problem never ended and i m experiecing unexplained shutdowns

    hey i have this problem with my mac.. that its on its own shuts itself whenever i m using google chrome..i updated to yosemite but the problem never ended and i m experiecing unexplained shutdowns

    Hi doctor.saddam,
    If your MacBook Pro is shutting down unexpectedly, I would suggest that you troubleshoot using the steps in this article - 
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Hi ... Suddenly I have this problem with my iPhone4 . Whenever I am dialling or receiving calls, I am not audible at the other end , but if I am putting phone on speaker then I am audible to other person .Not sure if any setting is changed or device issue

    Hi ... Suddenly I have this problem with my iPhone4 . Whenever I am dialling or receiving calls, I am not audible at the other end , but if I am putting phone on speaker then I am audible to other person .Not sure if any setting is changed or device issue. Please suggest or help.

    There's an Apple help page on the DNS problem - at http://support.apple.com/kb/TS3408
    The first thing to try is changing your DNS settings - and for that you need to open System Preferences, then the
    Network section.
    In Network - click  on Advanced - then the DNS tab
    under DNS servers - use the + button to enter two extra lines
    either these, from google dns
    8.8.8.8
    8.8.4.4
    or from OpenDNS
    208.67.222.222
    208.67.220.220
    then click OK & then 'Apply'
    You would need to do that seperately for the Cable (Ethernet) settings and Wireless (Airport)

  • My ipod was in recovery mode and fixed it. i can use it. but the problem is whenever am i connect it with itunes it says IPOD is in recovery mode even after recover is done. i cant sync ipod rite now. it showing same msg again. nyone knows wat to do plz??

    my ipod was in recovery mode and fixed it. i can use it. but the problem is whenever am i connect it with itunes it says IPOD is in recovery mode even after recover is done. i cant sync ipod rite now. it showing same msg again. nyone knows wat to do plz??

    I did the restore and it cleared and reset the iPod but after it finished the same error came up. I tried this 3 times. Also it no longer shows up as a drine in My Computer.
    if it's relentlessly doing that to you, it's plausible that the message is being caused by a Windows drive letter confusion. (that's consistent with the disappearance for My Computer, too.)
    see the following article for troubleshooting information on that possibility:
    "iTunes has detected an iPod in recovery mode - Use iTunes to restore"

  • My problems with this iphone 5 to make calls whenever an error occurs

    My problems with this iphone 5 to make calls whenever an error occurs, connection failure, but if I'm with 3g active this does not occur.
    This problem is happening with all my friends who have the iphone 5 and are from different carriers, already exchanged nano rather inclusive.

    Tks Ralph o vídeo explica bem o caso, e acontece com vários amigos que possuem iphone 5.
    Acontece o problema com qualquer operadora de telefonia.
    http://m.youtube.com/#/watch?v=JDi48-F63-k&desktop_uri=%2Fwatch%3Fv%3DJDi48-F63- k

  • My iphone is not syching at itunes. Everytime it says your iphone as been diconnected whenever I try to synch it, while logo on phone and itunes says it is still connected. help I have this problem with both my Iphone4 and Iphone5 with backup as well

    My iPhone is not synching at iTunes. Every time it says your iPhone as been disconnected whenever I try to synch it, while logo on phone and iTunes says it is still connected. help I have this problem with both my Iphone4 and Iphone5. This problem is with the back up as well.

    Hi singhgurwinder79,
    The article linked below provides details that can help troubleshoot this error and get your iPhone to sync correctly with iTunes.
    iTunes: Resolve USB-related alerts
    http://support.apple.com/en-us/HT203843
    Regards,
    Allen

Maybe you are looking for

  • Dns problems setting up profile manager

    i have been experimenting setting up OS X Server (10.8) on a new Mac mini on a network with Time Capsule.   server's host name is "server.me.private" at IP address 192.168.1.100 , Time Machine DHCP server address is 192.168.1.1 . Open Directory and P

  • Restrictions ACL for Wireless AP to WLC in HREAP Desgin Setup

                       Hello, Everyone  I have Wireless HREAP setup in which the Wireless LAN Controllers (WLC) are located across the WAN in DataCenter while the Wireless Access Points (AP) are located within the branches, so setup is fine but as securi

  • BW Report iView issue

    I am having a strange issue when I try to preview a BW iView via the Portal: The iView gets generated but the screen displays only the icons but not the data. I expect a variable screen to pop-up to enter the Calmonth but I don't get that. Note that

  • Update Retriever - Missing Intel wireless driver for the W530

    I can't find the driver g1w218ww_s64.exe available for download. I can see the 32 bit version, but not the 64 bit one. I even searched database.xml file to see if I'd accidentally hidden it, but can't see it there either.

  • Content in Jsp to be converted to Word Doc

    I have .jsp page. with some generated content. In that page, there is an option Convert to Word DOC PAGE. When the link is clicked , the content in the JSP page has to be converted to a Word Doc. How to do?