Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZFDebug and calling stored procedures #8

Open
emeraldjava opened this issue Jan 30, 2012 · 0 comments
Open

ZFDebug and calling stored procedures #8

emeraldjava opened this issue Jan 30, 2012 · 0 comments

Comments

@emeraldjava
Copy link

Hi,

I recently started using the ZFDebug tool and it's great. I have this action which calls a stored procedure to return a dataset. I've noticed that when ZFDebug is enabled and this action is called, the action is invoked multiple times and no reply is sent to the server. I appreciate my code might not be optimal but can you explain why ZFdebug might cause this to happen or how i should work around this issue?

public function matchingrunnersAction()
{
    $this->logger->info('matchingrunnersAction()');
    $eventtag = $this->_request->getParam('tag');
    $eventTable = new Model_DbTable_Event();
    $event = $eventTable->getEventByTag($eventtag);
    $this->view->event = $event;

    // call getMatchingRunnersByEvent();
    $db = Zend_Db_Table::getDefaultAdapter();
    $sql = sprintf("CALL getMatchingRunnersByEvent(%d)",$event->id);
    $stmt = $db->prepare($sql);
    $stmt->execute();

    $this->view->matchingRunners = $stmt->fetchAll();
    $stmt->closeCursor();

}

Regards,
Paul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant