mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 18:26:00 +00:00
default parameter encoding for execute scripts
This commit is contained in:
@@ -173,17 +173,19 @@ registerCommand({
|
||||
},
|
||||
});
|
||||
|
||||
registerCommand({
|
||||
id: 'new.queryDesign',
|
||||
category: 'New',
|
||||
icon: 'img query-design',
|
||||
name: 'Query design',
|
||||
menuName: 'New query design',
|
||||
onClick: () => newQueryDesign(),
|
||||
testEnabled: () =>
|
||||
getCurrentDatabase() &&
|
||||
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
||||
});
|
||||
if (isProApp()) {
|
||||
registerCommand({
|
||||
id: 'new.queryDesign',
|
||||
category: 'New',
|
||||
icon: 'img query-design',
|
||||
name: 'Query design',
|
||||
menuName: 'New query design',
|
||||
onClick: () => newQueryDesign(),
|
||||
testEnabled: () =>
|
||||
getCurrentDatabase() &&
|
||||
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
||||
});
|
||||
}
|
||||
|
||||
if (isProApp()) {
|
||||
registerCommand({
|
||||
@@ -229,14 +231,16 @@ if (isProApp()) {
|
||||
});
|
||||
}
|
||||
|
||||
registerCommand({
|
||||
id: 'new.perspective',
|
||||
category: 'New',
|
||||
icon: 'img perspective',
|
||||
name: 'Perspective',
|
||||
menuName: 'New perspective',
|
||||
onClick: () => newPerspective(),
|
||||
});
|
||||
if (isProApp()) {
|
||||
registerCommand({
|
||||
id: 'new.perspective',
|
||||
category: 'New',
|
||||
icon: 'img perspective',
|
||||
name: 'Perspective',
|
||||
menuName: 'New perspective',
|
||||
onClick: () => newPerspective(),
|
||||
});
|
||||
}
|
||||
|
||||
registerCommand({
|
||||
id: 'new.diagram',
|
||||
|
||||
@@ -416,7 +416,10 @@
|
||||
}
|
||||
|
||||
let isInitialized = false;
|
||||
let queryParameterStyle = localStorage.getItem(`tabdata_queryParamStyle_${tabid}`) ?? '';
|
||||
let queryParameterStyle =
|
||||
localStorage.getItem(`tabdata_queryParamStyle_${tabid}`) ??
|
||||
initialArgs?.queryParameterStyle ??
|
||||
(initialArgs?.scriptTemplate == 'EXECUTE PROCEDURE' || initialArgs?.scriptTemplate == 'CALL FUNCTION' ? ':' : null);
|
||||
</script>
|
||||
|
||||
<ToolStripContainer bind:this={domToolStrip}>
|
||||
|
||||
@@ -174,7 +174,7 @@ class MsSqlDumper extends SqlDumper {
|
||||
this.putCollection(
|
||||
delimiter,
|
||||
(parameters || []), param => {
|
||||
this.putRaw(argLiteralsByName[param]);
|
||||
this.putRaw(argLiteralsByName[param.parameterName]);
|
||||
if (param?.parameterMode == 'OUT') this.put(' ^output');
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user