Bug 1044457 - PostgreSQL 8.x fails with error: language "plpgsql" does not exist

parent f1897d39
......@@ -231,6 +231,9 @@ sub bz_setup_database {
my $self = shift;
$self->SUPER::bz_setup_database(@_);
my ($has_plpgsql) = $self->selectrow_array("SELECT COUNT(*) FROM pg_language WHERE lanname = 'plpgsql'");
$self->do('CREATE LANGUAGE plpgsql') unless $has_plpgsql;
# Custom Functions
# -Copyright © 2013 Joshua D. Burns (JDBurnZ) and Message In Action LLC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment