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

sqlite issue #37

Closed
gjj25 opened this issue Oct 17, 2013 · 3 comments
Closed

sqlite issue #37

gjj25 opened this issue Oct 17, 2013 · 3 comments

Comments

@gjj25
Copy link

gjj25 commented Oct 17, 2013

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

@fgusinde
Copy link

I tested with stable 0.8.8

I can confirm this issue and will go deeper now.

@fgusinde
Copy link

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

@fgusinde
Copy link

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

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

catfan added a commit that referenced this issue Oct 28, 2013
@catfan catfan closed this as completed in e4b3b02 Dec 24, 2013
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

2 participants