Closed Walk4Muscle closed 3 years ago
@Walk4Muscle , Can you post the output of $db->last_query after running your query? Thanks!
@omaressa , thanks for your reply. And yes, it returns "INSERT INTO "user" ("username", "email") VALUES ('user', 'user@domain.com')"
@catfan @omaressa same problem
@catfan @omaressa @Walk4Muscle problem has been solved! Just add following lines to your database config:
'option' => [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
],
I am new Medoo user and I would be very happy if this would be some how explained on Documentation ^^. Luckily Google search returns this issue quickly!
@Jackysi read docs - https://medoo.in/api/new (section "Configuration")
Same problem.
debug show it executed
SELECT COUNT(`id`) FROM `orders` WHERE `createdAt` >= 1582243200 AND `createdAt` < 1582329600
And I executed the above manually, it works. But medoo return null.
I am using medoo to handle table operations. And now I cannot debug via
error()
function of medoo at http://medoo.in/api/error.Here is my test table structure:
And the test code snippet:
And I always get the array via
$db->error()
:However, as the columns are set as unique, so it should return error messages. How to fix it? Any hints are appreciated.