require Exporter;
@ISA = qw(Exporter);
-@EXPORT = qw(conv_i conv_date conv_dateq do_query selectrow_query do_statement dump_query);
+@EXPORT = qw(conv_i conv_date conv_dateq do_query selectrow_query do_statement dump_query quote_db_date);
sub conv_i {
my ($value, $default) = @_;
$main::lxdebug->message($level, $msg . $query);
}
+sub quote_db_date {
+ my ($str) = @_;
+ return "NULL" unless defined $str;
+ return "current_date" if $str =~ /current_date/;
+ $str =~ s/'/''/g;
+ return "'$str'";
+}
+
1;
return $str;
}
-sub quote_db_date {
- $main::lxdebug->enter_sub(2) and my ($self, $str) = @_;
- $main::lxdebug->leave_sub(2) and return "NULL" unless defined $str;
- $main::lxdebug->leave_sub(2) and return "current_date" if $str =~ /current_date/;
- $str =~ s/'/''/g;
- $main::lxdebug->leave_sub(2) and return "'$str'";
-}
-
-
sub hide_form {
my $self = shift;