Comments (3)
Hi @bradlis7,
I am looking at the delimiter syntax why it did not work.
Can you try the following script as a work around:
drop procedure if exists MyProc;
create procedure MyProc()
begin
if (DATABASE() = 'X')
then
insert into CustomerSetting (CustomerId, `Key`, `Value`) values (10, 'Setting', 'false');
end if;
if (DATABASE() = 'T')
then
insert into CustomerSetting (CustomerId, `Key`, `Value`) values (20, 'Setting', 'false');
end if;
end;
-- Execute the procedure
call MyProc();
-- Drop the procedure
drop procedure MyProc;
from azuredatastudio-mysql.
Looks like it does work without DELIMITER
. And my script app seems to accept it without DELIMITER, so I probably don't need this personally anymore, but it might be nice for others if it was supported. If you'd like to close it, feel free.
from azuredatastudio-mysql.
Actually, I mispoke... it worked once I think, but doesn't work, so I do need DELIMITER
support.
from azuredatastudio-mysql.
Related Issues (20)
- Cannot open multiple connections to the same server in object explorer HOT 5
- A11y_MySQLextensionforAzureDataStudio_Export query results_I want to run a query that produces result sets and save the output to a file_Keyboard: While navigating from "Tags" to "Save as" it is taking 2 Tab Click to navigate. HOT 4
- A11y_MySQLextensionforAzureDataStudio_Notebooks - Create_I want to create a new blank notebook that I can then run and/or save_Usablity: "+Code" and "+Text" buttons are visually appearing as links. HOT 2
- A11y_MySQLextensionforAzureDataStudio_Create new server group_ Usability:The color name is not available to users along with the Hexadecimal value in the Group Color Field, in the add server group dialog. HOT 2
- A11y_MySQLextensionforAzureDataStudio_New Database_Usability:When We Create New Database , No Status message is announced to the Screen Reader users.
- A11y_MySQLextensionforAzureDataStudio_New deployment - Azure Database for MySQL_Functionality:"Select" button disappears when invalid filter resources value provided It does not reappear when valid value or no value is provided. HOT 1
- SSH Capabilities
- A11y_MySQLextensionforAzureDataStudio_Dashboard_High Contrast:In High Contrast Aquatic/ Desert theme, When keyboard focus lands on Home tab , Focus is not visible to users HOT 3
- Extension issue - Can't connect with MySQL HOT 2
- MySQL tools service is crashing when expanding OE nodes very frequently HOT 1
- Failing to export Excel file HOT 1
- Duplicate tree items for multi-column indexes in database object tree
- Does not work with mysql_clear_password plugin HOT 1
- Library not loaded: @loader_path/lib/Python
- Servers List doesn't prompt to re-auth when token expires
- PPK Connection
- Provide support for query analyzer
- Failed to start MySQL tools service HOT 11
- Add support for Unix sockets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azuredatastudio-mysql.