Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 30868
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: CAPTTOFU [...] cpan.org
Requestors: Eugen.Konkov [...] aldec.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 709b
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
Download (untitled) / with headers
text/plain 158b
Moved to DBD-mysql queue as it's almost certainly an issue with DBD::mysql not DBI. (You may get a faster response by emailing details to dbi-users@perl.org)
Please send me a test (the code) that causes this to manifest. Thanks!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.