Tags:
create new tag
view all tags

SID-00973: Trap database errors

Status: Answered Answered TWiki version: 4.3.1 Perl version: 5.10
Category: DBIQueryPlugin Server OS: Windows Vista Last update: 15 years ago

I have DATABASE_SQL statements which does insert/delete/update. I am not able to trap if the sql returns an error. How do I trap the error that is being returned?

-- TWikiGuest - 2010-09-21

Discussion and Answer

The DBIQueryPlugin needs to be enhanced. Could be done with a new showerror="" parameter. Proposed spec:

  • showerror="yes" - show errors (default)
  • showerror="no" - do not show errors

TWiki is open source. You could sponsor the work. Or if you are a programmer, you could enhance the plugin and post a patch to the DBIQueryPluginDev page.

See related SID-00972.

-- PeterThoeny - 2010-09-21

The situation here is a bit different from SID-00972. Here instead of suppessing the error, I want to trap it and act accordingly...

-- TWikiGuest - 2010-09-27

Yes, I am aware of that.

Interested in sponsoring the work? I can look for a consultant for you.

-- PeterThoeny - 2010-09-27

Yes, would like to hire a consultant. What is the rate I am looking at?

-- TWikiGuest - 2010-09-28

Please contact me by e-mail.

-- PeterThoeny - 2010-09-28

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Trap database errors
SupportCategory DBIQueryPlugin
TWiki version 4.3.1
Server OS Windows Vista
Web server Apache 2.0.63
Perl version 5.10
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2010-09-28 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.