-
Notifications
You must be signed in to change notification settings - Fork 7
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
SQL runtime errors are missing a proper error message #128
Comments
Error cases are alerady outputting useful messages: create table t (x int) strict;
create table t (x int) strict;
create table t (x int) strict;
create table t (x int) strict;
Feel free to reopen if you think we need different error messages |
The original request asks to also include the specific SQLlite error codes in the output, examples being Unless I'm mistaken, these are provided in the API response from sqld. |
@CodingDoug after furthers inspection this looks blocked If I run docker run -p 8080:8080 ghcr.io/libsql/sqld:latest To create an instance of sqld, and then curl --location 'http://127.0.0.1:8080' \
--header 'Content-Type: application/json' \
--data '{
"statements": [
{
"q": "create table t(x int);"
}
]
}' I get the error, without the Result Code:
|
@WilsonNet Looks like a |
The companion bug that was filed against sqld was closed. |
Any SQL that causes a problem during execution (not parsing) yields a generic error message that does not help resolve the problem. It should instead yield the actual SQLite error message. This happens for
SQL_INPUT_ERROR
andSQLITE_CONSTRAINT
codes.Examples:
The above should yield the SQLite code and error message:
The above should yield the SQLite code and error message:
The text was updated successfully, but these errors were encountered: