[ic] Delete row + Column does not exist

Mark Johnson markj@redhat.com
Thu, 15 Mar 2001 10:04:11 -0500


tamas.kohegyi@unforgettable.com wrote:

> New problem:
> I created this to check something is the row:
> 
> [tag flag write]current_table[/tag]
> [perl tables="current_table"]
>   $ref = $Db{current_table}; #set reference
>   $cart_sku = $Values->{'filename'}; #this is the row we have to check
> 
>   #if record does not exist, we have to do something
>   $ref->record_exists($cart_sku) or do { I_have_to_do_something; return; };
> 
>   #record exists.
>   do some other checks in the row...
> [/perl]
> 

Not sure why that would be happening, but you can force a soft failure.

[try]
[perl]
.
.
[/perl]
[/try]
[catch]  # only executed if something went ary in the [try][/try] tag
I_have_to_do_something;
[/catch]


Think of this as a perl:

eval { }

if ($@) { }

pair.


-- 
Mark Johnson
Senior Developer - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912