On Wed, Oct 12, 2011 at 4:33 PM, Rajeev Prasad <[email protected]> wrote:
> Hello, > > In my test script below, i am trying to figure out how to suppress the > error mesg when the the script try to add a previously presen tentry into > the table. > > OR better even, to make sure that the script should not even try to update > the table, if the record is already present in table. (table may grow very > big in future). > > > Hi Rajeev, Sorry that I am not answering your question directly. As this appears to be for testing, consider writing your test such that it cleans up after itself and reverts any changes to the database. This will also help avoid tests failing intermittently. Cheers, Fahad.
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
