catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

debug() don't work in the latest version. #1081

Closed martinloren closed 1 year ago

martinloren commented 1 year ago

Got latest version with composer -> "catfan/medoo": "^2.1",

  1. DB connection works
  2. no error output with the debug methods

WORKING INSTRUCTION $data = $db->query('SELECT * FROM users_stats')->fetchAll();

NOT WORKING INSTRUCTION (output just the query without any content) $data = $db->debug()->select("users_stats", "*");

catfan commented 1 year ago

What is the full code you actually ran?

You may need to check out your code in your whole project.

martinloren commented 1 year ago

Found in the source code that actually when you add ->debug() in front of the function it doesn't execute the function.

Thanks anyway, can be closed.