X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FCondition.pm;h=60697c1967c34e1185337e906521d79065ab96d5;hp=fc69f1d0c6025387775fd9350bb18845283f9f14;hb=4d00bdc38de74723b1f577edec0490fcad747e18;hpb=4c07c048c76c1aa8fe0f7aa8e8de7243ba60d777 diff --git a/FS/FS/part_event/Condition.pm b/FS/FS/part_event/Condition.pm index fc69f1d0c..60697c196 100644 --- a/FS/FS/part_event/Condition.pm +++ b/FS/FS/part_event/Condition.pm @@ -524,7 +524,7 @@ comparison to other integers is type-correct. sub condition_sql_option_integer { my ($class, $option, $driver_name) = @_; - my $integer = ($driver_name =~ /^mysql/) ? 'UNSIGNED INTEGER' : 'INTEGER'; + my $integer = (driver_name() =~ /^mysql/) ? 'UNSIGNED INTEGER' : 'INTEGER'; 'CAST( COALESCE('. $class->condition_sql_option($option).