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
main
Darwin-Arm64
I have a table created with the following query:
{luke}CREATE TABLE posts (id int primary key, name text not null)
When I run the following query, I expect to receive a sensible error message because my table_name parameter is not in quotes:
table_name
lukelamey@Lukes-MBP-2 .build % ./kwil-cli database query "SELECT * FROM info.columns WHERE table_name = posts"
I receive this error:
lukelamey@Lukes-MBP-2 .build % ./kwil-cli database query "SELECT * FROM info.columns WHERE table_name = posts" error querying database: jsonrpc.Error: code = -300, message = runtime error: invalid memory address or nil pointer dereference, data = null err code = -300, msg = runtime error: invalid memory address or nil pointer dereference
Create table as described above and run query.
If i do put the table_name in a single quote, the query works as expected. E.g.,
lukelamey@Lukes-MBP-2 .build % ./kwil-cli database query "SELECT * FROM info.columns WHERE table_name = 'posts'" | column_name | data_type | default_value | is_nullable | is_primary_key | ordinal_position | schema_name | table_name | +-------------+-----------+---------------+-------------+----------------+------------------+-------------+------------+ | id | bigint | <nil> | false | true | 1 | luke | posts | | name | text | <nil> | false | false | 2 | luke | posts |
This bug may be related to #1194
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version / Commit
main
Operating System
Darwin-Arm64
Configuration
I have a table created with the following query:
Expected Behavior
When I run the following query, I expect to receive a sensible error message because my
table_name
parameter is not in quotes:lukelamey@Lukes-MBP-2 .build % ./kwil-cli database query "SELECT * FROM info.columns WHERE table_name = posts"
Actual Behavior
I receive this error:
lukelamey@Lukes-MBP-2 .build % ./kwil-cli database query "SELECT * FROM info.columns WHERE table_name = posts" error querying database: jsonrpc.Error: code = -300, message = runtime error: invalid memory address or nil pointer dereference, data = null err code = -300, msg = runtime error: invalid memory address or nil pointer dereference
Steps to Reproduce
Create table as described above and run query.
Additional Information
If i do put the table_name in a single quote, the query works as expected. E.g.,
This bug may be related to #1194
The text was updated successfully, but these errors were encountered: