Title: get_rows_affected() always returns a -1? · Issue #231 · ChuckBell/MySQL_Connector_Arduino · GitHub
Open Graph Title: get_rows_affected() always returns a -1? · Issue #231 · ChuckBell/MySQL_Connector_Arduino
X Title: get_rows_affected() always returns a -1? · Issue #231 · ChuckBell/MySQL_Connector_Arduino
Description: Hello! I have been using your connector for some time already - thank you for this marvelous connector! I wanted these days to see how many rows my query returns and found get_rows_affected() in the src, but absolutely no mention of it o...
Open Graph Description: Hello! I have been using your connector for some time already - thank you for this marvelous connector! I wanted these days to see how many rows my query returns and found get_rows_affected() in th...
X Description: Hello! I have been using your connector for some time already - thank you for this marvelous connector! I wanted these days to see how many rows my query returns and found get_rows_affected() in th...
Opengraph URL: https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/231
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_rows_affected() always returns a -1?","articleBody":"Hello!\r\n\r\nI have been using your connector for some time already - thank you for this marvelous connector!\r\n\r\nI wanted these days to see how many rows my query returns and found get_rows_affected() in the src, but absolutely no mention of it on the web tho :) so I tried it and gets me a -1 every time.\r\n\r\nEverything else works perfectly, using the \"query_results\" example, it is fetching all the columns names and values, but the affected rows is -1.\r\n\r\nThe query is:\r\nchar query[] = \"SELECT * FROM cam.t WHERE DATE (`date_opening`) = CURDATE() ORDER BY `date_opening` DESC LIMIT 0 , 100\";\r\n\r\nand I expect a result of no more than 15 rows on any given day, but there are some 20k records in this table. Today's result is 1 for the first part, now is 2, if that matters.\r\n\r\nThe query also works perfectly in phpmyadmin. Mysql log shows no error for this query\r\n\r\n\r\nthis is what I added to the example (towards the end of the loop():\r\n```\r\n } while (row != NULL);\r\n \r\n // my try for get_rows_affected()\r\n int nr = cur_mem->get_rows_affected();\r\n Serial.print(\"\\n\\r #: \");\r\n Serial.print(nr);\r\n \r\n // Deleting the cursor also frees up memory used\r\n delete cur_mem;\r\n delay(180000); (any less will trigger the MySQL server for a day run:)\r\n```\r\n(and there is the WiFi initialization too, which is standard).\r\n\r\nthank you and best regards","author":{"url":"https://github.com/taper42","@type":"Person","name":"taper42"},"datePublished":"2024-06-11T08:49:33Z","url":"https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/231"}
| 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:bf48ccc2-8c17-5ef8-6753-307c9a2ed743 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A792:1D7BA0:617551:82AC85:6B003440 |
| html-safe-nonce | 908aa1134f9e7a28d608ddce1707e82198705d87d70a1bb3aacc139436c81056 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzkyOjFEN0JBMDo2MTc1NTE6ODJBQzg1OjZCMDAzNDQwIiwidmlzaXRvcl9pZCI6IjI2MTM1NTQ2NjczMjU1MDI1MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 92e0ecf39ed936db3cb67f0f3134322cf9be1554aeb9179eba1df366e11d1aba |
| hovercard-subject-tag | issue:2345788440 |
| 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/ChuckBell/MySQL_Connector_Arduino/231/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a29b62d258234869f39eb04421731e6727535341b1458e032079e5c2ec95e78/ChuckBell/MySQL_Connector_Arduino/issues/231 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a29b62d258234869f39eb04421731e6727535341b1458e032079e5c2ec95e78/ChuckBell/MySQL_Connector_Arduino/issues/231 |
| og:image:alt | Hello! I have been using your connector for some time already - thank you for this marvelous connector! I wanted these days to see how many rows my query returns and found get_rows_affected() in th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | taper42 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/ChuckBell/MySQL_Connector_Arduino git https://github.com/ChuckBell/MySQL_Connector_Arduino.git |
| octolytics-dimension-user_id | 8201184 |
| octolytics-dimension-user_login | ChuckBell |
| octolytics-dimension-repository_id | 49725805 |
| octolytics-dimension-repository_nwo | ChuckBell/MySQL_Connector_Arduino |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49725805 |
| octolytics-dimension-repository_network_root_nwo | ChuckBell/MySQL_Connector_Arduino |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width