[Dbix-class] how to avoid adding duplicate row to table containing unique field/column

Eden Cardim edencardim at gmail.com
Sat Oct 15 17:05:45 GMT 2011

>>>>> "Fahad" == Fahad Khan <fahad.a.khan at hotmail.com> writes:
    Fahad> Sorry that I am not answering your question directly. As this
    Fahad> appears to be for testing, consider writing your test such
    Fahad> that it cleans up after itself and reverts any changes to the
    Fahad> database. This will also help avoid tests failing
    Fahad> intermittently.

See Test::DBIx::Class for an automated way to do this.

  Eden Cardim
  Code Monkey                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://blog.edencardim.com/            http://www.shadowcat.co.uk/servers/

More information about the DBIx-Class mailing list