]> git.decadent.org.uk Git - dak.git/commitdiff
Check for the existance of the function before trying to drop it.
authorAllan Lyons <Allan_Lyons@wycliffe.ca>
Fri, 1 May 2009 18:28:47 +0000 (12:28 -0600)
committerAllan Lyons <Allan_Lyons@wycliffe.ca>
Fri, 1 May 2009 18:28:47 +0000 (12:28 -0600)
At least on my machine, ignoring the error if the function doesn't exist
doesn't work since psycopg2 bombs.  So, we attempt to at least check if
there are any functions with a similar name before trying to drop it.
This way it should work better on an empty database where the function
has never existed.

Signed-off-by: Allan Lyons <Allan_Lyons@wycliffe.ca>

No differences found