limbo/cli
Pekka Enberg c2a8a6f178 Merge 'improve handling of double quotes' from Glauber Costa
I ended up hitting #1974 today and wanted to fix it. I worked with
Claude to generate a more comprehensive set of queries that could fail
aside from just the insert query described in the issue. He got most of
them right - lots of cases were indeed failing. The ones that were
gibberish, he told me I was absolutely right for pointing out they were
bad.
But alas. With the test cases generated, we can work on fixing it. The
place where the assertion was hit, all we need to do there is return
true (but we assert that this is indeed a string literal, it shouldn't
be anything else at this point).
There are then just a couple of places where we need to make sure we
handle double quotes correctly. We already tested for single quotes in a
couple of places, but never for double quotes.
There is one funny corner case where you can just select "col" from tbl,
and if there is no column "col" on the table, that is treated as a
string literal. We handle that too.
Fixes #1974

Closes #2152
2025-07-18 20:55:37 +03:00
..
commands add .dbconfig option 2025-07-18 10:25:06 -05:00
config cli: fix not being able to redirect traces to a file from inline query 2025-07-16 13:55:48 +03:00
docs config docs 2025-05-17 15:51:17 -03:00
app.rs Merge 'improve handling of double quotes' from Glauber Costa 2025-07-18 20:55:37 +03:00
build.rs adding table colors 2025-03-06 15:52:20 -03:00
Cargo.toml Add a native MCP server 2025-07-17 15:05:29 -05:00
helper.rs make all run_once be run under statement or connection so that rollback is called 2025-07-07 11:51:25 -03:00
input.rs Add a native MCP server 2025-07-17 15:05:29 -05:00
main.rs Add a native MCP server 2025-07-17 15:05:29 -05:00
mcp_server.rs claude sonnet forgot to run clippy when implementing mcp server 2025-07-18 17:15:39 +03:00
opcodes_dictionary.rs fix: lint warnings 2024-07-08 22:43:11 +05:30
SQL.sublime-syntax highlight candidate 2025-03-06 16:33:23 -03:00