Discussion:
[Sqlgrey-users] Fwd: sqlgrey problems
Lionel Bouton
2013-09-18 12:11:22 UTC
Permalink
-------- Message original --------
Sujet: sqlgrey problems
Date : Wed, 18 Sep 2013 11:58:03 +0000
De : íÁËÁÒÅÎËÏ áÎÄÒÅÊ âÏÒÉÓÏ×ÉÞ <***@alfastrah.ru>
Pour : lionel-***@bouton.name <lionel-***@bouton.name>



Hi!

I found a bad call of the mylog module (). In version 1.8.0 sqlgrey.

See program report:

-----------------------------

Sep 18 14:48:57 relay4 sqlgrey: warning: Use of uninitialized value
$DBI::errstr in concatenation (.) or string at /usr/local/sbin/sqlgrey
line 246.

-----------------------------



I looked at a line 246 and saw a call of the subprogramme of mylog ()
with 3 arguments instead of necessary 4.



-----------------------------

# joe /usr/local/sbin/sqlgrey



42 my $VERSION = "1.8.0";





130 sub mylog($$$$) {

my ($self, $logtype, $loglevel, $message) = @_;





246 $self->mylog('dbaccess', 0, "warning: couldn't do query:\n" .

"$query:\n" .

"$DBI::errstr, reconnecting to DB");







With the best regards Andrey Mak.

Loading...