]> err.no Git - dak/commit
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)
commitbebc0055ecf573e0fa2fd663d8e6d52c5f8f1cdc
tree55e59bc4b38736bf7184d78dd5766c48b8f9ca29
parent5d9bc4dea68d93967ac71353455cd2b990ee4262
Check for the existance of the function before trying to drop it.

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>
dak/dakdb/update3.py