From 5748c98323ac1ae5c892ab0375b2a36082772192 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 10 Jun 2010 14:29:38 +0000 Subject: [PATCH] make sure we are not trying to use a "modern" class::dbi git-svn-id: svn://svn.open-ils.org/ILS/trunk@16648 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI.pm index e16cf42e4..a35d50587 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI.pm @@ -22,6 +22,11 @@ use OpenSRF::EX qw/:try/; our $VERSION = 1; my $log = 'OpenSRF::Utils::Logger'; +if ($Class::DBI::VERSION gt '3.0.1') { + $log->error("Your version of Class::DBI, $Class::DBI::VERSION, is too new and incompatable with Evergreen. You will need to downgrade to version 3.0.1"); + die("Your version of Class::DBI, $Class::DBI::VERSION, is too new and incompatable with Evergreen. You will need to downgrade to version 3.0.1"); +} + sub child_init { my $self = shift; -- 2.11.0