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

git-svn-id: svn://10.0.0.236/trunk@265590 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org 2014-09-29 03:30:48 +00:00
parent 6eb67cb1c3
commit 41c3e14a1d
3 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
9150 9151

View File

@ -1 +1 @@
f1897d398fbd9ba0c4b35d0414e2907120e39bd3 e6fa99287f4aaa2e2f134ca8e0eebb39c2cc2b6a

View File

@ -231,6 +231,9 @@ sub bz_setup_database {
my $self = shift; my $self = shift;
$self->SUPER::bz_setup_database(@_); $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 # Custom Functions
# -Copyright © 2013 Joshua D. Burns (JDBurnZ) and Message In Action LLC # -Copyright © 2013 Joshua D. Burns (JDBurnZ) and Message In Action LLC