Title: Aliases without AS keyword · Issue #161 · phpmyadmin/sql-parser · GitHub
Open Graph Title: Aliases without AS keyword · Issue #161 · phpmyadmin/sql-parser
X Title: Aliases without AS keyword · Issue #161 · phpmyadmin/sql-parser
Description: Having the AS keyword in the select expression is option, following both should work: SELECT 1 AS name; SELECT 1 name; But the shorter variant fails: $ ./bin/lint-query --query 'SELECT 1 name' #1: Unrecognized keyword. (near "name" at po...
Open Graph Description: Having the AS keyword in the select expression is option, following both should work: SELECT 1 AS name; SELECT 1 name; But the shorter variant fails: $ ./bin/lint-query --query 'SELECT 1 name' #1: ...
X Description: Having the AS keyword in the select expression is option, following both should work: SELECT 1 AS name; SELECT 1 name; But the shorter variant fails: $ ./bin/lint-query --query 'SELECT 1 name...
Opengraph URL: https://github.com/phpmyadmin/sql-parser/issues/161
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Aliases without AS keyword","articleBody":"Having the AS keyword in the select expression is option, following both should work:\r\n\r\n```mysql\r\nSELECT 1 AS name;\r\nSELECT 1 name;\r\n```\r\nBut the shorter variant fails:\r\n\r\n```console\r\n$ ./bin/lint-query --query 'SELECT 1 name'\r\n#1: Unrecognized keyword. (near \"name\" at position 9)\r\n```\r\n\r\n\r\nMySQL docs: https://dev.mysql.com/doc/refman/5.7/en/select.html#idm139723195268992\r\n\r\nSee also https://github.com/phpmyadmin/phpmyadmin/issues/13541","author":{"url":"https://github.com/nijel","@type":"Person","name":"nijel"},"datePublished":"2017-07-31T13:48:12Z","url":"https://github.com/phpmyadmin/sql-parser/issues/161"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:5efce9f9-a203-3400-aa68-d47a5399e7e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F9A:AEAB2:54F263:770CD8:6B044567 |
| html-safe-nonce | a3175ee1c60ddf389f930c55ffb21c009ce808455fcf9878760d295e0d7afc85 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjlBOkFFQUIyOjU0RjI2Mzo3NzBDRDg6NkIwNDQ1NjciLCJ2aXNpdG9yX2lkIjoiNTY4NDcyMDg4NDAxNTk3MzczNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 81d7ff6267fceda6b8a21d77636cee9a63982cb11aed9c19d869b07bc48a41d1 |
| hovercard-subject-tag | issue:246761521 |
| 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/phpmyadmin/sql-parser/161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af512c4da10f2888af6ed3758043f5c82b66be665745d9a31e5fb2588bf28e59/phpmyadmin/sql-parser/issues/161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af512c4da10f2888af6ed3758043f5c82b66be665745d9a31e5fb2588bf28e59/phpmyadmin/sql-parser/issues/161 |
| og:image:alt | Having the AS keyword in the select expression is option, following both should work: SELECT 1 AS name; SELECT 1 name; But the shorter variant fails: $ ./bin/lint-query --query 'SELECT 1 name' #1: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nijel |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/phpmyadmin/sql-parser git https://github.com/phpmyadmin/sql-parser.git |
| octolytics-dimension-user_id | 1351977 |
| octolytics-dimension-user_login | phpmyadmin |
| octolytics-dimension-repository_id | 36256604 |
| octolytics-dimension-repository_nwo | phpmyadmin/sql-parser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36256604 |
| octolytics-dimension-repository_network_root_nwo | phpmyadmin/sql-parser |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width