How do I tell if a mysql update was successful?

How do I tell if a mysql update was successful?
I need to know if an update was run or if the record was not found....  is there some way that coldfusion can use that traps success/fail resoponses from mysql [linda like myquery.RecordCount ]?
basically I am trying to update a row, if no row was updated - the record must not exist so I then need to do an insert...
-any ideas?
-sean

here is the test query:
<cfquery name="qry" datasource="#application.dsn#">
     update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
     where DISC_ProdID = '1129'
</cfquery>
<cfdump var="#qry#" />
the error is "Variable  QRY is undefined."
if you remove the dump the debug results for the query show:
          Debugging Information
ColdFusion Server Enterprise
8,0,1,195765
Template
/Assets/Import/index.cfm
Time Stamp
19-Jul-10 02:19 PM
Locale
English (US)
User Agent
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;  rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 ( .NET CLR 3.5.30729)
Remote IP
192.168.1.100
Host Name
192.168.1.100
Execution Time
Total Time
Avg Time
Count
Template
5 ms
5 ms
1
/data/vhome/xxxl/httpdocs/Assets/Import/index.cfm
3324 ms
STARTUP,  PARSING, COMPILING, LOADING, & SHUTDOWN
3329 ms
TOTAL EXECUTION  TIME
red =  over 250 ms average execution time
SQL  Queries qry (Datasource=dsn, Time=1ms,  Records=0) in  /data/vhome/xxx/httpdocs/Assets/Import/index.cfm @  14:19:19.019
     update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
     where DISC_ProdID = '1129'

Similar Messages

  • How can I tell this FM to update the buffer before reading data??

    Hi All,
    I have developed a Web Dynpro Application that calls a FM.
    Values are written into the database (I use a standard FM for that).
    After that, values a read from the database to be show in the Web Dynpro Application again (Again, using a standard FM).
    However, the data is not being updated, that is, the data delivered by the function module is not the updated, new data, but the old data.
    If I select the data using simple select statements, ist is provided correctly (new data). That means the database already has the correct data, but the FM uses some sort of buffer which does not seem to be up to date at this point in time...
    How can I tell the FM to update is buffers before being acually executed?
    The function module in question is called HRIQ_ACAD_READ_TIMELIMITS, but I don't think this information is required to answer my question.
    THANKS, Johannes

    aye, thats ecaxtly what i meant.
    Displaying the data in a new process. i know this is not what you finally want, but if the data is correct in your new process we might get better ideas what is causing your buffer problems.
    BTW is your system scaled? do you have more than one application server and may this be a synchronisation error?

  • HT204266 how can you tell if an app update is free?

    I constantly get app updates, it seems as if I am be charged for them, how can you tell if an app update is free?

    I have never been charged for an app update. Which apps are you being charged to update? There should be no charge for an update.
    If you upgrade the app from a lite version to a full version, there will be a charge for that.

  • How can I tell if my iphone 5 was backed up to icloud successfully?

    how can I tell if my iphone 5 was backed up to icloud successfully?

    Tap Settings
    Tap iCloud
    Tap Storage & Backup
    Tap Manage Storage
    Select the device you want to manage
    Your lastest backup/size will be shown.

  • How do you tell what week your computer was manufactured?

    How can I tell what week my computer was manufactured? My serial number is [..snipped...]. Week 19 translates to what month?
    Thank you

    Someone, somewhere could theoretically, trace your serial number to your name, address and maybe even how you paid for your computer. I recently had my identity cloned in Mexico. I wouldn’t think of posting any unnecessary information on any website. But that’s just me.

  • HT4528 how can i tell what time a video was taken that was sent to me?

    how can i tell what time a video was taken that was sent to me?

    Ask the person who sent it to you?

  • How can I tell when my iPhone 3GS was made?

    How can I tell when my iPhone 3GS was made?

    Plug the SN in here:
    http://www.chipmunk.nl/klantenservice/applemodel.html

  • How can I tell if I can update to OS X 10.7 lion?

    I Am trying to upload turbotax. I Chet an error that I need to update to OS X 10.7 Lion.  How can I tell if my current macBook is compatible? Can I even upload that? I would like to know before I purchase it.

    The information required is in the first window that opens

  • How can I tell which Apple Security Updates are installed?

    While troubleshooting a printer issue, I installed some 'Extra' printer profiles from my OS 10.6 Install DVD. After which, I got a dialog box from the Installer saying that I may have replaced some newer items with older ones, and it suggested I run the latest OS "Combo" installer. Which I did, even tho Software Update said I was up-to-date.
    But apparently, when I ran the "Mac OS X 10.6.8 Update Combo v1.1" -- it downgraded some of my Apple software to older versions. For example, I know for sure Safari was at 5.1.2 before I ran the Combo, and it's now at 5.0.5. Yet Software Update is not telling me about v.5.1.2, which it shows as already being installed (at a date prior to me running the Combo updater).
    So my question is:
    What other software might have been downgraded by the 10.6.8 Combo v1.1 -- and if Software Update thinks I running the current versions, how am I going to find out for sure?
    Obviously, I can check version numbers of my installed Apple software like iTunes and Aperture against the latest updates available at Apple Downloads, but I don't know how to check on background files like Security Updates, Java, etc.
    I am particularly concerned that I am running the latest Security Updates.
    Thanking you in advance,
    - gw

    steve626 said:
    "... There you will be able to see if a more recent version of Safari, etc. was replaced with an older version."
    Not exactly. That screen shows my most recent Safari update was 5.1.2 on 12/16/11 -- then it shows the Mac OS X Update Combined was installed on 1/2/12. That's when my Safari got downgraded to 5.0.5, but that detail is missing from the Installed Updates preference pane.
    It looks like once an update gets installed, Software Update remembers that -- but does not take the newer update off the list if an older version replaces it???
    So, even though I see Security Update 2011-006 was installed on 10/21/11, I'm not sure if the OS Combo Update replaced any security items with older bits. Is there anything specific to security updates that I might be able to check?
    -gw

  • May have been tricked to accepting false update yesterday 8-20-11 how do I find determine whether false update was installed?

    While working today on our old XP, I was told Firefox update failed because it was a trick. Yesterday a Firefox updated was okayed on our laptop (Vista). How can I tell if we have infected ourselves? Thanks.

    This issue can be caused by the presence of leftover files in the Firefox program folder (defaults\pref) like a file firefox.js that overrides the update URL with a wrong link.
    Do a clean reinstall and be sure to remove the Firefox program folder to remove the file(s) that cause the problem.
    See:
    *[[/questions/826858]]
    See also comment 36:
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=653830#c36 Bug 653830] - Popup notice Software Update - Update Failed - Something is trying to trick Firefox into accepting an insecure

  • How to restore Apple TV if an update was interrupted?

    How do I restore my Apple TV if an update was interrupted?

    By connecting to iTunes
    http://support.apple.com/kb/ht4367

  • How can I tell when an ical event was added?

    I'm on a shared ical calendar and there are times when 2 events have been put on at the same time.  How can I tell when the event was added and by who?
    Thanks!

    sharifrommo wrote:
    I am concerned that someone used the card on a different account. I'm assuming based on what you indicate that it can't be traced?
    If there is a legal issue I am sure Apple would properly respond if the records were subpoenaed, but short of that I do not know of a way. 

  • How to suppress the popup 'Express document "update was terminated" ?

    Hi,
    I am calling few BAPIs in UPDATE TASK Function Module.
    Whenever any of the BAPI returns any Error message  I get a popup for 'Express document "update was terminated" from the author'.
    I know that my SAP Inbox has the Update Terminated Message triggered by the system.
    Is there any way to suppress this popup, even if BAPI returns any error message?
    I am storing the error messages sent by BAPI in an internal table and those error messages are enough for the user.
    But the popup is misguiding to the user thats the reason we dont need the popup for 'Express document "update was terminated" from the author'.

    Hi,
    Its not possible to suppress the express termination message popup. I hope document could not have been saved to database.
    Just try to find out the route cause of the error.
    Error messages are not allowed in FMs called in UPDATE TASK.
    One work around i can suggest is, try to run the BAPI in test mode before calling the update task FM. If the test mode call is error free then only call the UPDATE TASK fm.
    Hope this solves your issue.
    Thanks,
    Vinod.

  • Sync merged my browsing history, how can I tell on which device page was opened ?

    My browsing history was merged after syncing devices.
    Now, when viewing merged history, how can I distinguish on which device page was originally opened ?
    It is possible to add many columns to the history view, but unfortunately there is no 'Device name' among them.

    Sorry, Right now firefox don't have that option..

  • Release Management slow to tell TFS that a deployment was successful.

    This is an example of the slowness from one of my projects:
    A build is queued > MSBuild starts within ten seconds > the build is complete within 35 seconds > I see "Creating the release and waiting for deployment results" within 50 seconds from the build status page > The build deploys to the
    first deployment stage, Release Management is done, there is nothing left to do
    within 60 seconds > The build status page is "waiting for deployment result..." for 5-7 minutes >  Build status changes to "Build succeeded".
    Does anybody know why the build takes 1 minute to build and deploy, but the "Build status" page doesn't update until 5 minutes later?
    I am using TFS 2013.4, RM 2013.4, and Agent-based releases. My template is "ReleaseTfvcTemplate.12.xaml"
    Edit: Also, this Release Template seems to ignore "Release Target Stage". I set "Release Target Stage" to "Development Staging" (my second stage) and it still went to "Development" (my first stage). I did not have this
    problem with the 11.1 template. Should I use that instead?

    I am going to change the verbosity of all the logs to the highest setting and get back with you.
    However, I wanted to add some additional information to the problem before I do:
    We are using CI and gated check-ins.
    If I set "Release Build" to False, then the build completes in 30 seconds.
    If I set "Release Build" to True, then the build completes in 30 seconds. Within 60 seconds I can usually check Release Management and see that the build is past the "Deploy" stage and in the "Validation" stage. Checking the
    deployment directory confirms that it has deployed. Up until recently the build summary would show that build as a success almost immediately... now it hangs for 5 minutes.
    Sometimes the build summary shows a failure due to a Release Exception DESPITE seeing that the release was successfully deployed in Release Management.
    This is a huge problem because we use gated check-ins. This happens whether a check-in triggers the build or it's a manually triggered.
    Screenshot 1 of build configuration:
    Screenshot 2:

Maybe you are looking for