Title: [BUG] column with names that are keywords cant be escaped in views · Issue #349 · stackql/stackql · GitHub
Open Graph Title: [BUG] column with names that are keywords cant be escaped in views · Issue #349 · stackql/stackql
X Title: [BUG] column with names that are keywords cant be escaped in views · Issue #349 · stackql/stackql
Description: Describe the bug If a response body has a top level field which is a keyword, such as desc it can be escaped in a naked SELECT statement, but the same statement fails in a view To Reproduce stackql >>CREATE VIEW vw_formula_urls AS SELECT...
Open Graph Description: Describe the bug If a response body has a top level field which is a keyword, such as desc it can be escaped in a naked SELECT statement, but the same statement fails in a view To Reproduce stackql...
X Description: Describe the bug If a response body has a top level field which is a keyword, such as desc it can be escaped in a naked SELECT statement, but the same statement fails in a view To Reproduce stackql...
Opengraph URL: https://github.com/stackql/stackql/issues/349
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] column with names that are keywords cant be escaped in views","articleBody":"**Describe the bug**\r\nIf a response body has a top level field which is a keyword, such as `desc` it can be escaped in a naked `SELECT` statement, but the same statement fails in a view\r\n\r\n**To Reproduce**\r\n```\r\nstackql \u003e\u003eCREATE VIEW vw_formula_urls AS SELECT * FROM (SELECT name as formula_name, homepage, \"desc\" as description FROM homebrew.formula.formula) t;\r\nDDL Execution Completed\r\nstackql \u003e\u003eSELECT * FROM vw_formula_urls WHERE formula_name = 'stackql';\r\nerror: You have an error in your stackql syntax; parser error: Code: INVALID_ARGUMENT\r\nsyntax error at position 59 near 'desc'\r\n```\r\n","author":{"url":"https://github.com/jeffreyaven","@type":"Person","name":"jeffreyaven"},"datePublished":"2023-12-21T03:17:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/349/stackql/issues/349"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:20f7bc49-7258-93af-4c7a-b0fcbd80a656 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E898:13B1D:1ACA44B:25BE24F:6A4CC396 |
| html-safe-nonce | cfeeea0e0f70de03e0f32302fea0aa2e63c9ff107ef8ef4a0b150a2f2c297971 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODk4OjEzQjFEOjFBQ0E0NEI6MjVCRTI0Rjo2QTRDQzM5NiIsInZpc2l0b3JfaWQiOiI2NjI2Mjg2NTU4MzQ4MzYyNjQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2e576f047e8b5662939693c6b91fc4afc6923fa0690ff6c4366bb0df6e7f093d |
| hovercard-subject-tag | issue:2051620084 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackql/stackql/349/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b36c6c8b2774ea54f94c973eeedf4b895c4a149d84bf6d43bc37a648e9c68159/stackql/stackql/issues/349 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b36c6c8b2774ea54f94c973eeedf4b895c4a149d84bf6d43bc37a648e9c68159/stackql/stackql/issues/349 |
| og:image:alt | Describe the bug If a response body has a top level field which is a keyword, such as desc it can be escaped in a naked SELECT statement, but the same statement fails in a view To Reproduce stackql... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffreyaven |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/stackql/stackql git https://github.com/stackql/stackql.git |
| octolytics-dimension-user_id | 95105302 |
| octolytics-dimension-user_login | stackql |
| octolytics-dimension-repository_id | 443987542 |
| octolytics-dimension-repository_nwo | stackql/stackql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 443987542 |
| octolytics-dimension-repository_network_root_nwo | stackql/stackql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d0da0eb92994395299ed4450bf67b0373005be36 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width