ArcadeDB Version: 22.9.1 (build d082adc/1664822987697/main)
JDK Version: openjdk version "11.0.16" 2022-07-19
OS: Ubuntu 20.04
Using SELECT 1 + 1 via endpoint gives an error, while via console and studio this works. In the studio it seems to work, as the "command" endpoint is used.
Expected behavior
2
Actual behavior
{"exception":"com.arcadedb.query.sql.parser.ParseException","detail":"Encountered \" <INTEGER_LITERAL> \"1 \"\" at line 1, column 12. Was expecting one of: <EOF> <LIMIT> ... <SKIP2> ... <OFFSET> ... <TIMEOUT> ... <AS> ... <LET> ... <UNWIND> ... \";\" ... \",\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... <AS> ... \",\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... <AS> ... <AS> ... <AS> ... <AS> ... <AS> ... <AS> ... <AS> ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... \":\" ... ","error":"Cannot execute command"}
Steps to reproduce
curl -X GET http://localhost:2480/api/v1/query/school/sql/select%201%20%2B%201 --user root:arcadedb-password
ArcadeDB Version: 22.9.1 (build d082adc/1664822987697/main)
JDK Version: openjdk version "11.0.16" 2022-07-19
OS: Ubuntu 20.04
Using
SELECT 1 + 1via endpoint gives an error, while via console and studio this works. In the studio it seems to work, as the "command" endpoint is used.Expected behavior
2
Actual behavior
Steps to reproduce