Skip Menu |

This queue is for tickets about the DBIx-DataSource CPAN distribution.

Report information
The Basics
Id: 408
Status: open
Priority: 0/
Queue: DBIx-DataSource

People
Owner: Nobody in particular
Requestors: tibbetts [...] mit.edu
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Date: Mon, 25 Mar 2002 16:01:20 -0500
From: Richard Tibbetts <tibbetts [...] mit.edu>
To: bug-dbix-datasource [...] rt.cpan.org
Subject: Shold be able to drop table which may not exist
Currently there is no way to drop a table which may or may not exist. This would be nice functionality. Also, the methods in the module call die. This is wrong, if I understand perl properly. tibbetts
[tibbetts@mit.edu - Mon Mar 25 16:01:21 2002]: Show quoted text
> Currently there is no way to drop a table which may or may not exist. > This would be nice functionality.
I agree it would be nice, but I can't see myself motivating to work on it anytime soon. Got patch? Show quoted text
> Also, the methods in the module call die. This is wrong, if I > understand perl properly.
die vs. croak really depends on whether or not you're throwing a fatal exception because something happened inside your module that never should have (in which case die is more appropriate), whereas croak indicates an fatal usage error where you want the exception thrown from the perspective of the caller. I guess if I'm satisfied with the regex i should s/die/croak/ ... but i'm not sure.