Title: FEATURE REQUEST: Add ability to include table name for all returned column names/values · Issue #789 · PyMySQL/PyMySQL · GitHub
Open Graph Title: FEATURE REQUEST: Add ability to include table name for all returned column names/values · Issue #789 · PyMySQL/PyMySQL
X Title: FEATURE REQUEST: Add ability to include table name for all returned column names/values · Issue #789 · PyMySQL/PyMySQL
Description: This feature request is implemented to a certain extent when using the DictCursor class to prevent name collisions. here However, I would like to see an option similar to what PHP 7 has like this: $pdo->setAttribute(PDO::ATTR_FETCH_TABLE...
Open Graph Description: This feature request is implemented to a certain extent when using the DictCursor class to prevent name collisions. here However, I would like to see an option similar to what PHP 7 has like this: ...
X Description: This feature request is implemented to a certain extent when using the DictCursor class to prevent name collisions. here However, I would like to see an option similar to what PHP 7 has like this: ...
Opengraph URL: https://github.com/PyMySQL/PyMySQL/issues/789
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FEATURE REQUEST: Add ability to include table name for all returned column names/values","articleBody":"This feature request is implemented to a certain extent when using the DictCursor class to prevent name collisions. [here](https://github.com/PyMySQL/PyMySQL/blob/3674bc6fd064bf88524e839c07690e8c35223709/pymysql/cursors.py#L370)\r\nHowever, I would like to see an option similar to what PHP 7 has like this:\r\n`$pdo->setAttribute(PDO::ATTR_FETCH_TABLE_NAMES, 1);`\r\nI just want a way to do something like so:\r\n```\r\n db = pymysql.connect(\r\n host=db_host, \r\n db=db_name, \r\n port=db_port, \r\n user=db_user, \r\n password=db_password,\r\n cursorclass=pymysql.cursors.DictCursor,\r\n fetch_table_names=true\r\n )\r\n```","author":{"url":"https://github.com/jhwinter","@type":"Person","name":"jhwinter"},"datePublished":"2019-04-04T16:40:33Z","url":"https://github.com/PyMySQL/PyMySQL/issues/789"}
| 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:255f7549-00c0-daf5-beef-3fa1b7ffe318 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2B0:3D4084:913594:BE4560:6AFE79CD |
| html-safe-nonce | 2d03ae1e146c2751b68d550b692aeb37b9e20c4c99b04f6edb5dfda652e8290f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkIwOjNENDA4NDo5MTM1OTQ6QkU0NTYwOjZBRkU3OUNEIiwidmlzaXRvcl9pZCI6IjE4NDczMDAxMDA0ODU3MDgyMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9c16c9a8ba9ce0d21c65f7392db6ded587d5b6435cb6dbd5cb952623d8287f2a |
| hovercard-subject-tag | issue:429378385 |
| 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/PyMySQL/PyMySQL/789/issue_layout |
| twitter:image | https://opengraph.githubassets.com/282ad361c6adff95619e08cbd2f955dd565daf580d6cc92005ec9ccc730deb49/PyMySQL/PyMySQL/issues/789 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/282ad361c6adff95619e08cbd2f955dd565daf580d6cc92005ec9ccc730deb49/PyMySQL/PyMySQL/issues/789 |
| og:image:alt | This feature request is implemented to a certain extent when using the DictCursor class to prevent name collisions. here However, I would like to see an option similar to what PHP 7 has like this: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jhwinter |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/PyMySQL/PyMySQL git https://github.com/PyMySQL/PyMySQL.git |
| octolytics-dimension-user_id | 5338312 |
| octolytics-dimension-user_login | PyMySQL |
| octolytics-dimension-repository_id | 2114213 |
| octolytics-dimension-repository_nwo | PyMySQL/PyMySQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2114213 |
| octolytics-dimension-repository_network_root_nwo | PyMySQL/PyMySQL |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width