We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$last_user_id = $db->insert("userlist", [ "username" => "foo", "(JSON)userqq" => ["en", "fr", "jp", "cn"] ]);
SQL: INSERT INTO "userlist" (username, (JSON)userqq) VALUES ('foo', '["en","fr","jp","cn"]')
Can not replace JSON?
The text was updated successfully, but these errors were encountered:
[fix] Fix column quote for insert #428
380c602
column quote pattern is wrong.
protected function column_quote($string) { return preg_replace('/(\(JSON\)\s*|^#)?([a-zA-Z0-9_]*)\.([a-zA-Z0-9_]*)/', '"' . $this->prefix . '$2"."$3"', $string); }
you must add table name before field name.
$last_user_id = $db->insert("userlist", [ "username" => "foo", "(JSON)userlist.userqq" => ["en", "fr", "jp", "cn"] ]);
Sorry, something went wrong.
No branches or pull requests
$last_user_id = $db->insert("userlist", [
"username" => "foo",
"(JSON)userqq" => ["en", "fr", "jp", "cn"]
]);
SQL:
INSERT INTO "userlist" (username, (JSON)userqq) VALUES ('foo', '["en","fr","jp","cn"]')
Can not replace JSON?
The text was updated successfully, but these errors were encountered: