Subject: | successfull execution of wrong query |
Date: | Tue, 20 Nov 2007 19:21:19 +0200 |
To: | <bug-DBI [...] rt.cpan.org> |
From: | <Eugen.Konkov [...] aldec.com> |
I am use mysql backend as DataBase server
DBI->connect("dbi:mysql:database=
There is next function In database:
CREATE DEFINER=`root`@`%` FUNCTION `update_task_status`(
parTaskID INT(11),
parStatus VarChar(32)
) RETURNS int(11)
BEGIN
.......
It have only two parameters to call.
If i call it with three parameters
"select update_task_status( 112141, 'FAILED', 3 )"
program does not die while I am executing such query:
$this->{sth}->execute( @_ ) or die "${DBI::err}: ${DBI::errstr} ($this->{Query})";
echo "${DBI::err}: ${DBI::errstr} ($this->{Query})";
I get on my console
1318: Incorrect number of arguments for FUNCTION akh_test_results.update_task_status; expected 2, got 3
instead of dieing