René's URL Explorer Experiment


Title: Procedure update under load could result irreversible loss of code. · Issue #2379 · HeidiSQL/HeidiSQL · GitHub

Open Graph Title: Procedure update under load could result irreversible loss of code. · Issue #2379 · HeidiSQL/HeidiSQL

X Title: Procedure update under load could result irreversible loss of code. · Issue #2379 · HeidiSQL/HeidiSQL

Description: Description I believe this exists in ALL versions of HeidiSQL and MySQL (and possibly for other engines as well). When procedure is updated the following sequence of commands is being executed: SELECT ROUTINE_NAME FROM information_schema...

Open Graph Description: Description I believe this exists in ALL versions of HeidiSQL and MySQL (and possibly for other engines as well). When procedure is updated the following sequence of commands is being executed: SEL...

X Description: Description I believe this exists in ALL versions of HeidiSQL and MySQL (and possibly for other engines as well). When procedure is updated the following sequence of commands is being executed: SEL...

Opengraph URL: https://github.com/HeidiSQL/HeidiSQL/issues/2379

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Procedure update under load could result irreversible loss of code.","articleBody":"### Description\n\nI believe this exists in ALL versions of HeidiSQL and MySQL (and possibly for other engines as well).   \n\nWhen procedure is updated the following sequence of commands is being executed:\n1. SELECT ROUTINE_NAME FROM `information_schema`.`ROUTINES` WHERE....\n2. CREATE PROCEDURE `HeidiSQL_temproutine_1`....\n3. DROP PROCEDURE IF EXISTS `HeidiSQL_temproutine_1`\\\\\n4. DROP PROCEDURE IF EXISTS `SP_NAME`\\\\\n5. CREATE PROCEDURE `SP_NAME`....\n\nThis works fine on an idle DB.\nHowever, I noticed when DB is under load (in my case it's a flow of SP calls with 50-150ms execution time each, but could be long running call as well) step 4 was execute already, but step 5 stuck in the waiting state (\"**Waiting for stored procedure metadata lock**\"). \nIt is logical that it cannot update SP while it's being executed. I don't know why the lock is not released immediately when SP execution finishes, but nevertheless it cannot run the CREATE statement even with small executions.\n\nSo, there is a situation when old procedure has been deleted already but new one was not created yet. This is very dangerous as workload starts to error (as procedure was deleted) and in my case it enters the loop keeping the lock.\nThis could last indefinitely. What people do when application hangs? they close it! So did I. When HeidiSQL was closed my procedure was gone. Even if I don't close app, a connection could be lost at any time due to network and result will be the same. Even without any problems on a client side, metadata lock will end with timeout after some time.\n\nI don't know how this should be solved (considering problems putting DDL in transactions) \nbut seems like creating temporary routine first and deleting it **at the very end** could help a bit. At least HeidiSQL could set a specific waiting period and kill query after it, and restore saved (old) version. Not ideal, but much better than a complete loss of an object in DB.\n\n\u003cimg width=\"271\" height=\"46\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5c2657d8-6bd0-459b-b7fc-c12a5f122961\" /\u003e\n\n### HeidiSQL version\n\n12.14.0.7165\n\n### Database server version\n\nMySQL 8.0 \n\n### Reproduction recipe\n\n1. Create procedure.\n2. Call it in a loop.\n3. Modify SP code and press \"Save\"\n4. Check \"Waiting for stored procedure metadata lock\" for CREATE statement connection indefinite until step#2 is active\n5. Kill connection with CREATE statement\n6. Check that SP is lost in DB.\n\n### Error/Backtrace\n\n```shell\n\n```","author":{"url":"https://github.com/OXYAMINE","@type":"Person","name":"OXYAMINE"},"datePublished":"2026-01-22T07:29:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2379/HeidiSQL/issues/2379"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e398339c-f491-2a85-b362-da3d71cfdc9f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA2A:3A8343:2E1A61:3D156B:6973EB07
html-safe-nonce5604e10d46d849c4ba0521d40fd7f6edd4d56a32d51873bc3e6334665668977b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTJBOjNBODM0MzoyRTFBNjE6M0QxNTZCOjY5NzNFQjA3IiwidmlzaXRvcl9pZCI6IjE0MTYwNDE4NzU5MjI3NDIwMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac883345ecfb7a37a8ccd2ef6af871ed193032e78f0fa52244c53700c3adb2f56f
hovercard-subject-tagissue:3841634391
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/HeidiSQL/HeidiSQL/2379/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1ddfbaf9e7c4c4a41fc3ad68ca566b9939746ea9769b14a73d3aa18603dde9d8/HeidiSQL/HeidiSQL/issues/2379
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1ddfbaf9e7c4c4a41fc3ad68ca566b9939746ea9769b14a73d3aa18603dde9d8/HeidiSQL/HeidiSQL/issues/2379
og:image:altDescription I believe this exists in ALL versions of HeidiSQL and MySQL (and possibly for other engines as well). When procedure is updated the following sequence of commands is being executed: SEL...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameOXYAMINE
hostnamegithub.com
expected-hostnamegithub.com
None99794f659b61e238a7ec37595eeb36b54a0ba1f2ae246f51ccb8ac5e4f08812e
turbo-cache-controlno-preview
go-importgithub.com/HeidiSQL/HeidiSQL git https://github.com/HeidiSQL/HeidiSQL.git
octolytics-dimension-user_id1338505
octolytics-dimension-user_loginHeidiSQL
octolytics-dimension-repository_id109230350
octolytics-dimension-repository_nwoHeidiSQL/HeidiSQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id109230350
octolytics-dimension-repository_network_root_nwoHeidiSQL/HeidiSQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8b15a65f03216f079a4ae509ff400d3e2ce03b58
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues/2379#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FHeidiSQL%2FHeidiSQL%2Fissues%2F2379
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FHeidiSQL%2FHeidiSQL%2Fissues%2F2379
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=HeidiSQL%2FHeidiSQL
Reloadhttps://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues/2379
Reloadhttps://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues/2379
Reloadhttps://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues/2379
HeidiSQL https://patch-diff.githubusercontent.com/HeidiSQL
HeidiSQLhttps://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL
Please reload this pagehttps://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues/2379
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FHeidiSQL%2FHeidiSQL
Fork 546 https://patch-diff.githubusercontent.com/login?return_to=%2FHeidiSQL%2FHeidiSQL
Star 5.8k https://patch-diff.githubusercontent.com/login?return_to=%2FHeidiSQL%2FHeidiSQL
Code https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL
Issues 507 https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues
Pull requests 3 https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/pulls
Actions https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/actions
Security 0 https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/security
Insights https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/pulse
Code https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL
Issues https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues
Pull requests https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/pulls
Actions https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/actions
Security https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/security
Insights https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/HeidiSQL/HeidiSQL/issues/2379
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/HeidiSQL/HeidiSQL/issues/2379
Procedure update under load could result irreversible loss of code.https://patch-diff.githubusercontent.com/HeidiSQL/HeidiSQL/issues/2379#top
bugDefective behaviour in HeidiSQLhttps://github.com/HeidiSQL/HeidiSQL/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/OXYAMINE
https://github.com/OXYAMINE
OXYAMINEhttps://github.com/OXYAMINE
on Jan 22, 2026https://github.com/HeidiSQL/HeidiSQL/issues/2379#issue-3841634391
https://private-user-images.githubusercontent.com/6914520/539005352-5c2657d8-6bd0-459b-b7fc-c12a5f122961.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjkyMDQ3ODcsIm5iZiI6MTc2OTIwNDQ4NywicGF0aCI6Ii82OTE0NTIwLzUzOTAwNTM1Mi01YzI2NTdkOC02YmQwLTQ1OWItYjdmYy1jMTJhNWYxMjI5NjEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDEyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMjNUMjE0MTI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODg2ZjNmMTU2Y2RlYTgxZjdjNTk2MjY0YjgyM2Q1OTQyOGUxMTFjMzUwNDQyYWYwYTA5OWUwNjlkYzhmMDcwMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.0_gTk-4oI29kGy5-ttx-LQQhUAKFgW2KtAghAR5xoEM
bugDefective behaviour in HeidiSQLhttps://github.com/HeidiSQL/HeidiSQL/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.