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

Error while inserting array #6

Open
puld opened this issue Dec 14, 2017 · 0 comments
Open

Error while inserting array #6

puld opened this issue Dec 14, 2017 · 0 comments

Comments

@puld
Copy link

puld commented Dec 14, 2017

I created a table in which one of the columns has the type Array (String). To insert this table, I pass an array of strings. As a result, an incorrect sql-code is generated. The array of strings is not surrounded by the characters [ and ].

I think that here it is necessary to add the missing brackets.

return "'" . implode("','", $value) . "'";

To become
return "['" . implode("','", $value) . "']";

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

1 participant