projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove all traces of Aranea.
[spider.git]
/
perl
/
DXSql.pm
diff --git
a/perl/DXSql.pm
b/perl/DXSql.pm
index fcf4e4ce5608dd5fc4068f4adb2c19924278483f..d0f7856b05193c58251e61cb5bd7fa0084832ba4 100644
(file)
--- a/
perl/DXSql.pm
+++ b/
perl/DXSql.pm
@@
-22,6
+22,8
@@
our $active = 0;
sub init
{
sub init
{
+ my $dsn = shift;
+ return unless $dsn;
return $active if $active;
eval {
return $active if $active;
eval {
@@
-31,6
+33,7
@@
sub init
import DBI;
$active++;
}
import DBI;
$active++;
}
+ undef $@;
return $active;
}
return $active;
}
@@
-170,7
+173,7
@@
sub spot_search
$expr =~ s/\$f9/spotcq/g;
$expr =~ s/\|\|/ or /g;
$expr =~ s/\&\&/ and /g;
$expr =~ s/\$f9/spotcq/g;
$expr =~ s/\|\|/ or /g;
$expr =~ s/\&\&/ and /g;
- $expr =~ s/=~\s+m\{\^([
\w]+)[^\}]*\}/ like '$1%
'/g;
+ $expr =~ s/=~\s+m\{\^([
%\w]+)[^\}]*\}/ like '$1
'/g;
} else {
$expr = '';
}
} else {
$expr = '';
}