-
Notifications
You must be signed in to change notification settings - Fork 664
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
can not select use where in json file #1841
Comments
Are you getting anything from console.error? Is |
the '中文' encode to x96x87, maybe encode type used incorrect |
Interesting. Any chance you can share the actual json file so we can try a bit? |
mathiasrw
added
Help wanted
Related to: Code quality
Bug: Code provided to reproduced
Good first issue
and removed
! Question
labels
Nov 22, 2023
test.json
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vue3 ts
···
// it is work, and console print [{...}]
let arr = [{ "name": "中文", "addr": "中文" }, { "name": "文", "addr": "文" }];
let res = alasql("SELECT * FROM ? WHERE name like '%文%'", [arr]);
// but use json file, not work, console print []
alasql.promise("SELECT * FROM json('/test.json') WHERE name like '%文%'").then(function (results) {
console.log(results);
}).catch(console.error);
···
test.json
both file encode utf8
The text was updated successfully, but these errors were encountered: