fix mostly-harmless warning
authorMark Wells <mark@freeside.biz>
Fri, 10 May 2013 21:25:58 +0000 (14:25 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 10 May 2013 21:25:58 +0000 (14:25 -0700)
FS/FS/part_event/Condition.pm

index 64a4d5b..2a399c4 100644 (file)
@@ -508,7 +508,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).