Medoo icon indicating copy to clipboard operation
Medoo copied to clipboard

sqlite issue

Open gjj25 opened this issue 13 years ago • 3 comments

with this

$database = new medoo([ 'database_type' => 'sqlite', 'database_file' => 'nwys.sqlite', 'option' => '' ]); var_dump($database->error());

I get this array(3) { [0]=> string(5) "00000" [1]=> int(1) [2]=> string(24) "near "SET": syntax error" } array(0) { }

any idea where the syntax error comes from ?

Thx, Gerd

gjj25 avatar Oct 17 '13 19:10 gjj25

I tested with stable 0.8.8

I can confirm this issue and will go deeper now.

fgusinde avatar Oct 27 '13 19:10 fgusinde

error is line 90ff; given is empty array(0) {} PHP Warning: PDO::__construct() expects parameter 2 to be string, array given in [...]

fgusinde avatar Oct 27 '13 19:10 fgusinde

Sample in documentation is also buggy, http://medoo.in/api/new

Since I'm not using sqlite maybe angel can debug here?

fgusinde avatar Oct 27 '13 20:10 fgusinde