catfan / Medoo

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

Warning: PDO::getAttribute(): SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute in medoo.php on line 944 #241

Closed quantuumsnot closed 7 years ago

quantuumsnot commented 9 years ago

Title speaks for itself ... Using $database->getinfo() prints this ...

Btw it's weird why I can't insert anything. No errors, no nothing, everything is ok in my script, but nothing is inserted ... Using the examples: $database = new medoo(['database_type' => 'sqlite', 'database_name' => 'test.db']); $database->insert('metrics', [ 'date' => $res['date'], //Current date 'function' => $res['function'], //Function name 'steps' => $res['steps'], //Steps passed 'time' => $res['time'], //Time taken 'memory' => $res['memory'] //Memory used ]);

quantuumsnot commented 9 years ago

Nope ... just nope. The library continuously reports 'No such table' while it exists. Falling back to good old PDO prepared statements

20perline commented 9 years ago

you should use 'database_file' instead of 'database_name' for sqlite