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
As mentioned in this discord thread, using length as an alias name doesn't return any results:
length
// query: select count(*) as 'length' from my_table ResultSetImpl { columns: [ "length" ], columnTypes: [ "" ], rows: [ {} ], rowsAffected: 0, lastInsertRowid: undefined } // query: select url as 'length' from my_table ResultSetImpl { columns: [ "length" ], columnTypes: [ "TEXT" ], rows: [ {}, {} ], rowsAffected: 0, lastInsertRowid: undefined }
However, the code works when using an alias name other than length:
// query: select count(*) as 'test' from my_table ResultSetImpl { columns: [ "test" ], columnTypes: [ "" ], rows: [ { test: 2 } ], rowsAffected: 0, lastInsertRowid: undefined } // query: select url as 'test' from my_table ResultSetImpl { columns: [ "test" ], columnTypes: [ "TEXT" ], rows: [ { test: "https://example.com" }, { test: "https://example.org" } ], rowsAffected: 0, lastInsertRowid: undefined }
Using the length name as an alias works on the Turso shell.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As mentioned in this discord thread, using
length
as an alias name doesn't return any results:However, the code works when using an alias name other than
length
:Using the
length
name as an alias works on the Turso shell.The text was updated successfully, but these errors were encountered: